[Scummvm-cvs-logs] CVS: scummvm/common file.cpp,1.10,1.11 file.h,1.5,1.6
Max Horn
fingolfin at users.sourceforge.net
Fri Sep 13 05:17:02 CEST 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.5,1.6 sound.h,1.4,1.5 string.cpp,1.10,1.11
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm scumm.h,1.14,1.15 scummvm.cpp,1.14,1.15 sound.cpp,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common
In directory usw-pr-cvs1:/tmp/cvs-serv16015
Modified Files:
file.cpp file.h
Log Message:
ugh! yes, negative offsets for seek do occur! Thus using an unsigned isn't such a good choice for the offset parameter
Index: file.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/file.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- file.cpp 10 Sep 2002 07:34:26 -0000 1.10
+++ file.cpp 13 Sep 2002 12:16:03 -0000 1.11
@@ -138,7 +138,7 @@
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;
Index: file.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/file.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- file.h 8 Sep 2002 01:08:11 -0000 1.5
+++ file.h 13 Sep 2002 12:16:03 -0000 1.6
@@ -44,7 +44,7 @@
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();
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.5,1.6 sound.h,1.4,1.5 string.cpp,1.10,1.11
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm scumm.h,1.14,1.15 scummvm.cpp,1.14,1.15 sound.cpp,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list