X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cc549e58c75763c9f861be71c93be5fd68bd04e..48a611cf0044bdde4e3955b1ca9f088b3f4bffbe:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 77f765e2d2..11c6340293 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1119,8 +1119,8 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0, if ( !fileMsg.IsOpened() ) return false; - // get the file size - off_t nSize = fileMsg.Length(); + // get the file size (assume it is less than 4Gb...) + size_t nSize = fileMsg.Length(); if ( nSize == wxInvalidOffset ) return false; @@ -1132,7 +1132,7 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0, } // examine header - bool bValid = (size_t)nSize > sizeof(wxMsgCatalogHeader); + bool bValid = nSize > sizeof(wxMsgCatalogHeader); wxMsgCatalogHeader *pHeader = (wxMsgCatalogHeader *)m_pData; if ( bValid ) {