aboutsummaryrefslogtreecommitdiff
path: root/common/file.cpp
diff options
context:
space:
mode:
authorMax Horn2002-09-13 12:16:03 +0000
committerMax Horn2002-09-13 12:16:03 +0000
commitfd91bb67dc9c1d1eac30b58bcbeb7529e40e2566 (patch)
tree7a20900f645fd2b708c68ae915641205f980a725 /common/file.cpp
parentecdb98a0eea111bf0c464fbea3aefa8a102590fc (diff)
downloadscummvm-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/file.cpp')
-rw-r--r--common/file.cpp2
1 files changed, 1 insertions, 1 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;