[Scummvm-cvs-logs] CVS: tools descumm-common.cpp,1.4,1.5
Max Horn
fingolfin at users.sourceforge.net
Thu Sep 11 08:37:37 CEST 2003
Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv2932
Modified Files:
descumm-common.cpp
Log Message:
fix for LE machines
Index: descumm-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/descumm-common.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- descumm-common.cpp 11 May 2003 22:23:11 -0000 1.4
+++ descumm-common.cpp 11 Sep 2003 11:24:53 -0000 1.5
@@ -74,10 +74,10 @@
int i;
if (scriptVersion == 8) {
- i = TO_LE_32(*((int32 *)cur_pos));
+ i = TO_LE_32(*((uint32 *)cur_pos));
cur_pos += 4;
} else {
- i = TO_LE_16(*((int16 *)cur_pos));
+ i = TO_LE_16(*((uint16 *)cur_pos));
cur_pos += 2;
}
return i;
More information about the Scummvm-git-logs
mailing list