diff src/video/SDL_RLEaccel.c @ 1155:91569ec25acd

Fixed some compiler warnings about "unreachable code" on Watcom C.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 03 Oct 2005 08:38:28 +0000
parents cdea7cbc3e23
children c9b51268668f
line wrap: on
line diff
--- a/src/video/SDL_RLEaccel.c	Mon Oct 03 08:12:32 2005 +0000
+++ b/src/video/SDL_RLEaccel.c	Mon Oct 03 08:38:28 2005 +0000
@@ -1632,10 +1632,11 @@
 
 static Uint32 getpix_24(Uint8 *srcbuf)
 {
-    if(SDL_BYTEORDER == SDL_LIL_ENDIAN)
-	return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
-    else
-	return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2];
+#if SDL_BYTEORDER == SDL_LIL_ENDIAN
+    return srcbuf[0] + (srcbuf[1] << 8) + (srcbuf[2] << 16);
+#else
+    return (srcbuf[0] << 16) + (srcbuf[1] << 8) + srcbuf[2];
+#endif
 }
 
 static Uint32 getpix_32(Uint8 *srcbuf)