src/stdlib/SDL_iconv.c
changeset 1502 d403a39389da
parent 1501 73dc5d39bbf8
child 1503 5e4dad24a5de
--- a/src/stdlib/SDL_iconv.c	Mon Mar 13 01:08:00 2006 +0000
+++ b/src/stdlib/SDL_iconv.c	Mon Mar 13 01:16:16 2006 +0000
@@ -669,7 +669,7 @@
 		    case ENCODING_UTF32BE:
 			{
 				Uint8 *p = (Uint8 *)dst;
-				if ( ch > 0x7FFFFFFF ) {
+				if ( ch > 0x10FFFF ) {
 					ch = UNKNOWN_UNICODE;
 				}
 				if ( dstlen < 4 ) {
@@ -686,7 +686,7 @@
 		    case ENCODING_UTF32LE:
 			{
 				Uint8 *p = (Uint8 *)dst;
-				if ( ch > 0x7FFFFFFF ) {
+				if ( ch > 0x10FFFF ) {
 					ch = UNKNOWN_UNICODE;
 				}
 				if ( dstlen < 4 ) {