summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2012-01-14 00:49:25 -0500
committerSam Lantinga <slouken@libsdl.org>2012-01-14 00:49:25 -0500
commit084229b3ccf50ac8da409e66ef3c277bce8c9b0f (patch)
tree78427ccad2953bd8e4e812d250ffc9e1fa3a70bd /include
parent0d1451676e64878f2361e9800917cc1be56e2614 (diff)
Fixed inline assembly warning for PPC
input constraint with a matching output constraint of incompatible type
Diffstat (limited to 'include')
-rw-r--r--include/SDL_endian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/SDL_endian.h b/include/SDL_endian.h
index c804f30f..571fd994 100644
--- a/include/SDL_endian.h
+++ b/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