Commit 1db79a98 authored by Patrice Mandin's avatar Patrice Mandin

Wrong size of parameters for SDL_Swap32 m68k assembly routine

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40995
parent 75df506b
......@@ -114,9 +114,9 @@ static __inline__ Uint32 SDL_Swap32(Uint32 x)
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment