Skip to content

Commit

Permalink
Fixed inline assembly warning for PPC
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 19, 2012
1 parent df9723e commit 16f09c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SDL_endian.h
Expand Up @@ -86,10 +86,10 @@ static __inline__ Uint16 SDL_Swap16(Uint16 x)
#elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
static __inline__ Uint16 SDL_Swap16(Uint16 x)
{
Uint16 result;
int result;

__asm__("rlwimi %0,%2,8,16,23" : "=&r" (result) : "0" (x >> 8), "r" (x));
return result;
return (Uint16)result;
}
#elif defined(__GNUC__) && (defined(__m68k__) && !defined(__mcoldfire__))
static __inline__ Uint16 SDL_Swap16(Uint16 x)
Expand Down

0 comments on commit 16f09c2

Please sign in to comment.