X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06a086e8d24a83391e7acaf34c31548105916a1a..cb04da13bddf9c70028b7adb55ac4efbb92ce4d4:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index f9badf5395..e553b2c833 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -302,7 +302,7 @@ bool wxFile::ReadAll(wxString *str, const wxMBConv& conv) char* p = buf.data(); for ( ;; ) { - static const unsigned READSIZE = 4096; + static const ssize_t READSIZE = 4096; ssize_t nread = Read(p, length > READSIZE ? READSIZE : length); if ( nread == wxInvalidOffset )