X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9df3f0586be52d8a7dabfe51283de2795d73cf4..767e3be0fa755e435a070d145fa623e36762d7a8:/src/common/wfstream.cpp diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index d89d5bfb64..af90722dd0 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -253,7 +253,7 @@ wxFileOffset wxFFileInputStream::OnSysSeek(wxFileOffset pos, wxSeekMode mode) #ifdef __VMS #pragma message disable intsignchange #endif - wxASSERT_MSG( pos >= 0 && pos <= LONG_MAX, _T("no huge wxFFile support") ); + wxASSERT_MSG( pos >= LONG_MIN && pos <= LONG_MAX, _T("no huge wxFFile support") ); return ( m_file->Seek((long)pos, mode) ? (wxFileOffset)m_file->Tell() : wxInvalidOffset ); #ifdef __VMS #pragma message enable intsignchange @@ -334,7 +334,7 @@ wxFileOffset wxFFileOutputStream::OnSysSeek(wxFileOffset pos, wxSeekMode mode) #ifdef __VMS #pragma message disable intsignchange #endif - wxASSERT_MSG( pos >= 0 && pos <= LONG_MAX, _T("no huge wxFFile support") ); + wxASSERT_MSG( pos >= LONG_MIN && pos <= LONG_MAX, _T("no huge wxFFile support") ); return ( m_file->Seek((long)pos, mode) ? (wxFileOffset)m_file->Tell() : wxInvalidOffset ); #ifdef __VMS #pragma message enable intsignchange