From 0a1390c7d8e237d6ae58e2d13971bb6df8851cd5 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Tue, 23 Nov 2004 16:22:43 +0000 Subject: [PATCH] Seek calls take an offset which can validly be negative. Use >= LONG_MIN not 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wfstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2