Mercurial > sdl-ios-xcode
changeset 994:c4e5473672b6
Wrong size of parameters for SDL_Swap32 m68k assembly routine
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Sat, 27 Nov 2004 23:11:20 +0000 |
parents | 2662da16d668 |
children | 22fc5f45bbb7 |
files | include/SDL_endian.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/include/SDL_endian.h Sat Nov 27 21:28:49 2004 +0000 +++ b/include/SDL_endian.h Sat Nov 27 23:11:20 2004 +0000 @@ -114,9 +114,9 @@ return result; } #elif defined(__GNUC__) && defined(__M68000__) -static __inline__ Uint16 SDL_Swap32(Uint16 x) +static __inline__ Uint32 SDL_Swap32(Uint32 x) { - __asm__("rorw #8,%0;\t\nswap %0;\t\nror #8,%0" : "=d" (x) : "0" (x) : "cc"); + __asm__("rorw #8,%0\n\tswap %0\n\tror #8,%0" : "=d" (x) : "0" (x) : "cc"); return x; } #else