Argh, really fix byte order serialization.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 02 Feb 2006 07:07:03 +0000
changeset 104 339482f858af
parent 103 0f2c360e6cf6
child 105 504604e5eaaf
Argh, really fix byte order serialization.
mojopatch.c
--- a/mojopatch.c	Tue Jan 31 02:39:48 2006 +0000
+++ b/mojopatch.c	Thu Feb 02 07:07:03 2006 +0000
@@ -256,8 +256,7 @@
         return(0);
 
     #if PLATFORM_BIGENDIAN
-    if (ar->reading)
-    	x = (((x)>>24) + (((x)>>8)&0xff00) + (((x)<<8)&0xff0000) + ((x)<<24));
+   	x = (((x)>>24) + (((x)>>8)&0xff00) + (((x)<<8)&0xff0000) + ((x)<<24));
     #endif
 
     *val = x;