diff options
author | Filippos Karapetis | 2013-11-02 19:58:52 +0200 |
---|---|---|
committer | Filippos Karapetis | 2013-11-02 19:59:22 +0200 |
commit | b4f8e45a3c0ea641a07defd3d2eaf5bd917137c1 (patch) | |
tree | 2de1260ce2beae0c38e4e33274b9883027f389c2 /common | |
parent | 604b86a0ac69d4f06fd6fb3c8b68dd566fef095e (diff) | |
download | scummvm-rg350-b4f8e45a3c0ea641a07defd3d2eaf5bd917137c1.tar.gz scummvm-rg350-b4f8e45a3c0ea641a07defd3d2eaf5bd917137c1.tar.bz2 scummvm-rg350-b4f8e45a3c0ea641a07defd3d2eaf5bd917137c1.zip |
COMMON: SEEK_END offsets are negative
This was taken directly from the old code, which either used different
semantics, or had a genuine bug
Diffstat (limited to 'common')
-rw-r--r-- | common/zlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/zlib.cpp b/common/zlib.cpp index 1c7e8437fe..f1a298a9f1 100644 --- a/common/zlib.cpp +++ b/common/zlib.cpp @@ -252,7 +252,7 @@ public: break; case SEEK_END: // NOTE: This can be an expensive operation (see below). - newPos = size() - offset; + newPos = size() + offset; break; } |