Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Wrong size of parameters for SDL_Swap32 m68k assembly routine
  • Loading branch information
pmandin committed Nov 27, 2004
1 parent 2b26bac commit 2f61c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_endian.h
Expand Up @@ -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
Expand Down

0 comments on commit 2f61c48

Please sign in to comment.