changeset 1513:13a3520a13f9

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Mon, 13 Mar 2006 02:26:47 +0000
parents 845b1619c8f6
children e9d781fca1ae
files src/stdlib/SDL_iconv.c
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/stdlib/SDL_iconv.c	Mon Mar 13 02:12:39 2006 +0000
+++ b/src/stdlib/SDL_iconv.c	Mon Mar 13 02:26:47 2006 +0000
@@ -383,8 +383,8 @@
 				if ( srclen < 2 ) {
 					return SDL_ICONV_EINVAL;
 				}
-				W1 = ((Uint32)p[0] << 8) |
-				      (Uint32)p[1];
+				W1 = ((Uint16)p[0] << 8) |
+				      (Uint16)p[1];
 				src += 2;
 				srclen -= 2;
 				if ( W1 < 0xD800 || W1 > 0xDFFF ) {
@@ -402,8 +402,8 @@
 					return SDL_ICONV_EINVAL;
 				}
 				p = (Uint8 *)src;
-				W2 = ((Uint32)p[0] << 8) |
-				      (Uint32)p[1];
+				W2 = ((Uint16)p[0] << 8) |
+				      (Uint16)p[1];
 				src += 2;
 				srclen -= 2;
 				if ( W2 < 0xDC00 || W2 > 0xDFFF ) {
@@ -424,8 +424,8 @@
 				if ( srclen < 2 ) {
 					return SDL_ICONV_EINVAL;
 				}
-				W1 = ((Uint32)p[1] << 8) |
-				      (Uint32)p[0];
+				W1 = ((Uint16)p[1] << 8) |
+				      (Uint16)p[0];
 				src += 2;
 				srclen -= 2;
 				if ( W1 < 0xD800 || W1 > 0xDFFF ) {
@@ -443,8 +443,8 @@
 					return SDL_ICONV_EINVAL;
 				}
 				p = (Uint8 *)src;
-				W2 = ((Uint32)p[1] << 8) |
-				      (Uint32)p[0];
+				W2 = ((Uint16)p[1] << 8) |
+				      (Uint16)p[0];
 				src += 2;
 				srclen -= 2;
 				if ( W2 < 0xDC00 || W2 > 0xDFFF ) {