Correct Fix for FetchLE16 and 32 swap
This commit is contained in:
parent
8c6dfae3f7
commit
e112606268
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ extern unsigned short inline _FetchLE16(unsigned char** pp) {
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define FetchLE16(p) SDL_SwapLE16(*((unsigned short*)(p))); ++p
|
#define FetchLE16(p) SDL_SwapLE16(*((unsigned short*)(p))); p += 2
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ extern unsigned inline _FetchLE32(unsigned char** pp) {
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define FetchLE32(p) SDL_SwapLE32(*((unsigned int*)(p))); ++p
|
#define FetchLE32(p) SDL_SwapLE32(*((unsigned int*)(p))); p += 4
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue