src/stdlib/SDL_iconv.c
changeset 1510 720f8bb49d7d
parent 1503 5e4dad24a5de
child 1513 13a3520a13f9
--- a/src/stdlib/SDL_iconv.c	Mon Mar 13 01:47:03 2006 +0000
+++ b/src/stdlib/SDL_iconv.c	Mon Mar 13 02:06:33 2006 +0000
@@ -401,7 +401,7 @@
 				if ( srclen < 2 ) {
 					return SDL_ICONV_EINVAL;
 				}
-				p = src;
+				p = (Uint8 *)src;
 				W2 = ((Uint32)p[0] << 8) |
 				      (Uint32)p[1];
 				src += 2;
@@ -442,7 +442,7 @@
 				if ( srclen < 2 ) {
 					return SDL_ICONV_EINVAL;
 				}
-				p = src;
+				p = (Uint8 *)src;
 				W2 = ((Uint32)p[1] << 8) |
 				      (Uint32)p[0];
 				src += 2;