X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06a086e8d24a83391e7acaf34c31548105916a1a..1c6a98048b47cf1dd1926e97f94abe81a3fded1e:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index f9badf5395..d6b4620e7d 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 ) @@ -511,10 +511,6 @@ bool wxFile::Eof() const { wxLogSysError(_("can't determine if the end of file is reached on descriptor %d"), m_fd); } - else if ( iRc != 1 ) - { - wxFAIL_MSG(wxT("invalid eof() return value.")); - } return true; }