From e1126062685152e572668520aa9a28c4dd4310ca Mon Sep 17 00:00:00 2001
From: mr-russ <>
Date: Sun, 27 Jun 2004 07:47:01 +0000
Subject: [PATCH] Correct Fix for FetchLE16 and 32 swap

---
 src/include/myendian.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/include/myendian.h b/src/include/myendian.h
index 4c645951e..d972f4667 100644
--- a/src/include/myendian.h
+++ b/src/include/myendian.h
@@ -103,7 +103,7 @@ extern unsigned short inline _FetchLE16(unsigned char** pp) {
 
 #else
 
-#define FetchLE16(p) SDL_SwapLE16(*((unsigned short*)(p))); ++p
+#define FetchLE16(p) SDL_SwapLE16(*((unsigned short*)(p))); p += 2
 
 #endif
 
@@ -123,7 +123,7 @@ extern unsigned inline _FetchLE32(unsigned char** pp) {
 
 #else
 
-#define FetchLE32(p) SDL_SwapLE32(*((unsigned int*)(p))); ++p
+#define FetchLE32(p) SDL_SwapLE32(*((unsigned int*)(p))); p += 4
 
 #endif