X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb719f2e29bd20effa3259d2d7dead9fd857442c..142b15c5a1c54540de52a72f3059fdffaa1c8afe:/src/common/textfile.cpp diff --git a/src/common/textfile.cpp b/src/common/textfile.cpp index 951f54e88d..604bb54c4c 100644 --- a/src/common/textfile.cpp +++ b/src/common/textfile.cpp @@ -97,7 +97,7 @@ bool wxTextFile::OnRead(wxMBConv& conv) char *strBuf, *strPtr, *strEnd; char ch, chLast = '\0'; char buf[1024]; - int n, nRead; + wxFileSize_t nRead; strPtr = strBuf = new char[1024]; strEnd = strBuf + 1024; @@ -112,7 +112,7 @@ bool wxTextFile::OnRead(wxMBConv& conv) return false; } - for (n = 0; n < nRead; n++) + for (wxFileSize_t n = 0; n < nRead; n++) { ch = buf[n]; switch ( ch )