X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d51253e84498c982074def1ace0ef9a8c51b0aee..410c3efc0518390dbdc39f42100682cffa446dcc:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index 925377b194..a4b94e28ca 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -299,7 +299,7 @@ bool wxFile::Close() // ---------------------------------------------------------------------------- // read -size_t wxFile::Read(void *pBuf, size_t nCount) +ssize_t wxFile::Read(void *pBuf, size_t nCount) { wxCHECK( (pBuf != NULL) && IsOpened(), 0 ); @@ -308,7 +308,7 @@ size_t wxFile::Read(void *pBuf, size_t nCount) if ( iRc == -1 ) { wxLogSysError(_("can't read from file descriptor %d"), m_fd); - return (size_t)wxInvalidOffset; + return wxInvalidOffset; } return iRc;