diff options
author | Max Horn | 2002-09-13 12:16:03 +0000 |
---|---|---|
committer | Max Horn | 2002-09-13 12:16:03 +0000 |
commit | fd91bb67dc9c1d1eac30b58bcbeb7529e40e2566 (patch) | |
tree | 7a20900f645fd2b708c68ae915641205f980a725 /common | |
parent | ecdb98a0eea111bf0c464fbea3aefa8a102590fc (diff) | |
download | scummvm-rg350-fd91bb67dc9c1d1eac30b58bcbeb7529e40e2566.tar.gz scummvm-rg350-fd91bb67dc9c1d1eac30b58bcbeb7529e40e2566.tar.bz2 scummvm-rg350-fd91bb67dc9c1d1eac30b58bcbeb7529e40e2566.zip |
ugh! yes, negative offsets for seek do occur! Thus using an unsigned isn't such a good choice for the offset parameter
svn-id: r4927
Diffstat (limited to 'common')
-rw-r--r-- | common/file.cpp | 2 | ||||
-rw-r--r-- | common/file.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/file.cpp b/common/file.cpp index df0df9c5f2..b111975795 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -138,7 +138,7 @@ uint32 File::pos() { return ftell(_handle); } -void File::seek(uint32 offs, int whence) { +void File::seek(int32 offs, int whence) { if (_handle == NULL) { error("File is not open!"); return; diff --git a/common/file.h b/common/file.h index 691f06f57d..e2a2e97b94 100644 --- a/common/file.h +++ b/common/file.h @@ -44,7 +44,7 @@ public: void clearIOFailed(); bool eof(); uint32 pos(); - void seek(uint32 offs, int whence); + void seek(int32 offs, int whence); uint32 read(void *ptr, uint32 size); byte readByte(); uint16 readWordLE(); |