]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textfile.cpp
gdk_cursor_destroy -> gdk_cursor_unref
[wxWidgets.git] / src / common / textfile.cpp
index 1ba27db9f15da8369f29ce952fe81acef960e544..40f5d4b44d10a3edb7ba7e9df6c13dc22043402d 100644 (file)
@@ -98,7 +98,7 @@ bool wxTextFile::OnRead(wxMBConv& conv)
     // read and so the conversion would fail) and, as the file contents is kept
     // in memory by wxTextFile anyhow, it shouldn't be a big problem to read
     // the file entirely
-    const size_t bufSize = m_file.Length() + 4 /* for trailing NULs */;
+    const size_t bufSize = (size_t)(m_file.Length() + 4 /* for trailing NULs */ );
     size_t bufPos = 0;
     wxCharBuffer buf(bufSize - 1 /* it adds 1 internally */);
 
@@ -241,4 +241,3 @@ bool wxTextFile::OnWrite(wxTextFileType typeNew, wxMBConv& conv)
 }
 
 #endif // wxUSE_TEXTFILE
-