Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed inline assembly warning for PPC

input constraint with a matching output constraint of incompatible type
  • Loading branch information
slouken committed Jan 14, 2012
1 parent 24a658b commit 52565f588b765a3ca1812a22f95e539c9e7b15ed
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/SDL_endian.h
@@ -91,10 +91,10 @@ SDL_Swap16(Uint16 x)
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(__M68000__) || defined(__M68020__)) && !defined(__mcoldfire__)
static __inline__ Uint16

0 comments on commit 52565f5

Please sign in to comment.