]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/intl.cpp
don't try to delete our config file in DeleteAll() if we don't have any; don't assert...
[wxWidgets.git] / src / common / intl.cpp
index 8d5410623a01749f9d012d5633f1cceebf3928bb..4b164126f3f3fedcc9ac09dd1e9b4575b72211a4 100644 (file)
@@ -1120,13 +1120,13 @@ bool wxMsgCatalogFile::Load(const wxChar *szDirPrefix, const wxChar *szName0,
     return false;
 
   // get the file size
-  size_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;
   }