From 1fe12cb4025d651e464e786e640ba36abd2c8102 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 2 Feb 2006 07:07:03 +0000 Subject: [PATCH] Argh, really fix byte order serialization. --- mojopatch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mojopatch.c b/mojopatch.c index 9d76e9c..2406780 100644 --- a/mojopatch.c +++ b/mojopatch.c @@ -256,8 +256,7 @@ static int serialize_uint32(SerialArchive *ar, unsigned int *val) 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;