X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4761f668a8ea043a690385fc34c15126afbc6df..93c2f401e9955dc37df1f8dbfea7881c676b8ddb:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index bf24c944ed..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 - wxFileOffset 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 ) {