Skip to content
Permalink
Browse files

Wrong size of parameters for SDL_Swap32 m68k assembly routine

  • Loading branch information
pmandin committed Nov 27, 2004
1 parent 2b26bac commit 2f61c489bf089a4d99f62a9bbdd9d381b12f655c
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/SDL_endian.h
@@ -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

0 comments on commit 2f61c48

Please sign in to comment.