src/stdlib/SDL_iconv.c
changeset 1502 d403a39389da
parent 1501 73dc5d39bbf8
child 1503 5e4dad24a5de
     1.1 --- a/src/stdlib/SDL_iconv.c	Mon Mar 13 01:08:00 2006 +0000
     1.2 +++ b/src/stdlib/SDL_iconv.c	Mon Mar 13 01:16:16 2006 +0000
     1.3 @@ -669,7 +669,7 @@
     1.4  		    case ENCODING_UTF32BE:
     1.5  			{
     1.6  				Uint8 *p = (Uint8 *)dst;
     1.7 -				if ( ch > 0x7FFFFFFF ) {
     1.8 +				if ( ch > 0x10FFFF ) {
     1.9  					ch = UNKNOWN_UNICODE;
    1.10  				}
    1.11  				if ( dstlen < 4 ) {
    1.12 @@ -686,7 +686,7 @@
    1.13  		    case ENCODING_UTF32LE:
    1.14  			{
    1.15  				Uint8 *p = (Uint8 *)dst;
    1.16 -				if ( ch > 0x7FFFFFFF ) {
    1.17 +				if ( ch > 0x10FFFF ) {
    1.18  					ch = UNKNOWN_UNICODE;
    1.19  				}
    1.20  				if ( dstlen < 4 ) {