X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cc549e58c75763c9f861be71c93be5fd68bd04e..45d51f194ab8ca09c31aae413e791ac91c4639f5:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 77f765e2d2..4b164126f3 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1120,13 +1120,13 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0, return false; // get the file size - off_t nSize = fileMsg.Length(); + wxFileOffset nSize = fileMsg.Length(); if ( nSize == wxInvalidOffset ) return false; // read the whole file in memory m_pData = new size_t8[nSize]; - if ( fileMsg.Read(m_pData, nSize) != nSize ) { + if ( fileMsg.Read(m_pData, nSize) != (size_t)nSize ) { wxDELETEA(m_pData); return false; }