[Scummvm-cvs-logs] CVS: scummvm-new/scumm/smush saud_channel.cpp,1.4,1.5
Ruediger Hanke
tomjoad at users.sourceforge.net
Sun Aug 25 13:15:03 CEST 2002
Update of /cvsroot/scummvm/scummvm-new/scumm/smush
In directory usw-pr-cvs1:/tmp/cvs-serv15980
Modified Files:
saud_channel.cpp
Log Message:
Endian fix
Index: saud_channel.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm-new/scumm/smush/saud_channel.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- saud_channel.cpp 25 Aug 2002 10:50:18 -0000 1.4
+++ saud_channel.cpp 25 Aug 2002 20:14:52 -0000 1.5
@@ -232,8 +232,8 @@
bool SaudChannel::appendData(Chunk & b, int size) {
if(_dataSize == -1) { // First call
assert(size > 8);
- Chunk::type saud_type = b.getDword(); saud_type = TO_BE_32(saud_type);
- unsigned int saud_size = b.getDword(); saud_size = TO_BE_32(saud_size);
+ Chunk::type saud_type = b.getDword(); saud_type = SWAP_BYTES(saud_type);
+ unsigned int saud_size = b.getDword(); saud_size = SWAP_BYTES(saud_size);
if(saud_type != TYPE_SAUD) error("Invalid Chunk for SaudChannel : %X", saud_type);
size -= 8;
_dataSize = -2; // We don't get here again...
More information about the Scummvm-git-logs
mailing list