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 )