diff options
author | Torbjörn Andersson | 2005-01-09 14:57:41 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-01-09 14:57:41 +0000 |
commit | 9d1f4ff1e6ea637518f9778b863db5bdb8683658 (patch) | |
tree | 47ce7019bfad5f80120c4160724566e93a007a7a | |
parent | 048ceb0c1ff9e592ff9d6a73d8be6ae8fc327198 (diff) | |
download | scummvm-rg350-9d1f4ff1e6ea637518f9778b863db5bdb8683658.tar.gz scummvm-rg350-9d1f4ff1e6ea637518f9778b863db5bdb8683658.tar.bz2 scummvm-rg350-9d1f4ff1e6ea637518f9778b863db5bdb8683658.zip |
Since _pos is unsigned it's always >= 0, so testing for negativity will
generate a warning in GCC.
svn-id: r16496
-rw-r--r-- | common/stream.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/stream.cpp b/common/stream.cpp index 4f065d5d5d..62b045fd0d 100644 --- a/common/stream.cpp +++ b/common/stream.cpp @@ -27,7 +27,7 @@ namespace Common { void MemoryReadStream::seek(int32 offs, int whence) { // Pre-Condition - assert(0 <= _pos && _pos <= _bufSize); + assert(_pos <= _bufSize); switch (whence) { case SEEK_END: // SEEK_END works just like SEEK_SET, only 'reversed', @@ -45,7 +45,7 @@ void MemoryReadStream::seek(int32 offs, int whence) { break; } // Post-Condition - assert(0 <= _pos && _pos <= _bufSize); + assert(_pos <= _bufSize); } |