aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/script.h
diff options
context:
space:
mode:
authorSven Hesse2009-06-22 16:29:45 +0000
committerSven Hesse2009-06-22 16:29:45 +0000
commit7ba9c46cb0e80eebb2fab718c2f4cd8913ab8890 (patch)
treed3af1be0b14469d7e9aed70dcfca9c2cff0641e9 /engines/gob/script.h
parent565a9f5b0d4528b09531e1c381f81587546a0580 (diff)
downloadscummvm-rg350-7ba9c46cb0e80eebb2fab718c2f4cd8913ab8890.tar.gz
scummvm-rg350-7ba9c46cb0e80eebb2fab718c2f4cd8913ab8890.tar.bz2
scummvm-rg350-7ba9c46cb0e80eebb2fab718c2f4cd8913ab8890.zip
More signess consistency on the reading and seeking methods
svn-id: r41771
Diffstat (limited to 'engines/gob/script.h')
-rw-r--r--engines/gob/script.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/gob/script.h b/engines/gob/script.h
index 28d8483272..52f322f1f4 100644
--- a/engines/gob/script.h
+++ b/engines/gob/script.h
@@ -40,9 +40,9 @@ public:
~Script();
/** Read data and move the pointer accordingly. */
- uint32 read(byte *data, uint32 size);
+ uint32 read(byte *data, int32 size);
/** Read data (from an optional offset) without moving the pointer. */
- uint32 peek(byte *data, uint32 size, int32 offset = 0) const;
+ uint32 peek(byte *data, int32 size, int32 offset = 0) const;
// Stream properties
int32 pos() const;
@@ -50,7 +50,7 @@ public:
// Stream seeking
bool seek(int32 offset, int whence = SEEK_SET);
- bool skip(uint32 offset);
+ bool skip(int32 offset);
// Reading data
byte readByte ();
@@ -89,7 +89,7 @@ public:
char *getResultStr();
/** Returns the offset the specified pointer is within the script data. */
- uint32 getOffset(byte *ptr);
+ int32 getOffset(byte *ptr);
/** Returns the raw data pointer. */
byte *getData();