[Scummvm-cvs-logs] CVS: tools compress_san.cpp,1.13,1.14

Max Horn fingolfin at users.sourceforge.net
Fri Aug 20 08:00:14 CEST 2004


Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18788

Modified Files:
	compress_san.cpp 
Log Message:
Fix compress_san on BE systems

Index: compress_san.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/compress_san.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- compress_san.cpp	11 Jul 2004 05:04:43 -0000	1.13
+++ compress_san.cpp	20 Aug 2004 14:59:08 -0000	1.14
@@ -95,7 +95,7 @@
 		printf("frame: %d\n", l);
 		bool first_fobj = true;
 		tag = readUint32BE(input); // chunk tag
-		assert(tag == TO_LE_32('FRME'));
+		assert(tag == 'FRME');
 		writeUint32BE(output, tag); // FRME
 		int32 frameSize = readUint32BE(input); // FRME size
 		frameInfo[l].frameSize = frameSize;
@@ -107,10 +107,10 @@
 			tag = readUint32BE(input); // chunk tag
 			if (feof(input))
 				break;
-			if (tag == TO_LE_32('FRME')) {
+			if (tag == 'FRME') {
 				fseek(input, -4, SEEK_CUR);
 				break;
-			} else if ((tag == TO_LE_32('FOBJ')) && (first_fobj)) {
+			} else if ((tag == 'FOBJ') && (first_fobj)) {
 				size = readUint32BE(input); // FOBJ size
 				if ((size & 1) != 0)
 					size++;





More information about the Scummvm-git-logs mailing list