Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Argh, really fix byte order serialization.
  • Loading branch information
icculus committed Feb 2, 2006
1 parent fae5d85 commit 1fe12cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mojopatch.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1fe12cb

Please sign in to comment.