X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/44327ff375205d04dd7f71560b454f3ec283c233..bc8b8220f8be20dfc56112e104c9900325d1874e:/src/common/textfile.cpp diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index 1ba27db9f1..40f5d4b44d 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -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 -