]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
fixed win32 code to not use MB_ERR_INVALID_CHARS on win version where it isn't availa...
[wxWidgets.git] / src / common / stream.cpp
index 07984617d2d268365da5c4367ecb73f733024165..435b60f266a6c6814cce08149b66d037e933a3b4 100644 (file)
@@ -664,7 +664,7 @@ size_t wxStreamBase::GetSize() const
         return 0;
 
     const size_t len = wx_truncate_cast(size_t, length);
-    wxASSERT_MSG( len == length, _T("large files not supported") );
+    wxASSERT_MSG( len == length + size_t(0), _T("large files not supported") );
 
     return len;
 }