X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4761f668a8ea043a690385fc34c15126afbc6df..154e1ca1814ff1987caf1d6c4e3967ca6a9548c4:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index bf24c944ed..2edc031e31 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1126,7 +1126,7 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0, // read the whole file in memory m_pData = new size_t8[nSize]; - if ( fileMsg.Read(m_pData, nSize) != nSize ) { + if ( fileMsg.Read(m_pData, (size_t)nSize) != (size_t)nSize ) { wxDELETEA(m_pData); return false; } @@ -1157,7 +1157,7 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0, Swap(pHeader->ofsOrigTable)); m_pTransTable = (wxMsgTableEntry *)(m_pData + Swap(pHeader->ofsTransTable)); - m_nSize = nSize; + m_nSize = (size_t)nSize; // now parse catalog's header and try to extract catalog charset and // plural forms formula from it: