[Scummvm-cvs-logs] CVS: scummvm/kyra resource.cpp,1.3,1.4
Gregory Montoir
cyx at users.sourceforge.net
Sun Nov 7 08:28:56 CET 2004
Update of /cvsroot/scummvm/scummvm/kyra
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27813/kyra
Modified Files:
resource.cpp
Log Message:
endianness
Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/kyra/resource.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- resource.cpp 16 Oct 2004 22:28:29 -0000 1.3
+++ resource.cpp 7 Nov 2004 16:24:40 -0000 1.4
@@ -199,7 +199,7 @@
// works with the file
uint32 pos = 0, startoffset = 0, endoffset = 0;
- startoffset = *(reinterpret_cast<uint32*>((_buffer + pos)));
+ startoffset = READ_LE_UINT32(_buffer + pos);
pos += 4;
while (pos < filesize) {
@@ -212,7 +212,7 @@
if(!chunk->_name)
break;
- endoffset = *(reinterpret_cast<uint32*>((_buffer + pos)));
+ endoffset = READ_LE_UINT32(_buffer + pos);
pos += 4;
chunk->_data = _buffer + startoffset;
More information about the Scummvm-git-logs
mailing list