about summary refs log tree commit diff
path: root/iconvdata
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-19 20:36:21 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-19 20:36:21 +0000
commit5be072b6df5b13f334a3f0951598386c81a68181 (patch)
tree2fe3c8df16f7d7293b07a670a7dfef3237a3b417 /iconvdata
parentade6741188e2e068d02bce54ccf0ee67900d3c55 (diff)
downloadglibc-5be072b6df5b13f334a3f0951598386c81a68181.tar.gz
glibc-5be072b6df5b13f334a3f0951598386c81a68181.tar.xz
glibc-5be072b6df5b13f334a3f0951598386c81a68181.zip
(BODY): Fix range of low surrogate.
Diffstat (limited to 'iconvdata')
-rw-r--r--iconvdata/utf-16.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iconvdata/utf-16.c b/iconvdata/utf-16.c
index b8165088e1..6b0dd9c8f5 100644
--- a/iconvdata/utf-16.c
+++ b/iconvdata/utf-16.c
@@ -1,5 +1,5 @@
 /* Conversion module for UTF-16.
-   Copyright (C) 1999, 2000-2002 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000-2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
 
@@ -307,7 +307,7 @@ gconv_end (struct __gconv_step *data)
 	    inptr += 2;							      \
 	    u2 = bswap_16 (get16 (inptr));				      \
 	    if (__builtin_expect (u2 < 0xdc00, 0)			      \
-		|| __builtin_expect (u2 == 0xdfff, 0))			      \
+		|| __builtin_expect (u2 > 0xdfff, 0))			      \
 	      {								      \
 		/* This is no valid second word for a surrogate.  */	      \
 		inptr -= 2;						      \
@@ -343,7 +343,7 @@ gconv_end (struct __gconv_step *data)
 	    inptr += 2;							      \
 	    u2 = get16 (inptr);						      \
 	    if (__builtin_expect (u2 < 0xdc00, 0)			      \
-		|| __builtin_expect (u2 >= 0xdfff, 0))			      \
+		|| __builtin_expect (u2 > 0xdfff, 0))			      \
 	      {								      \
 		/* This is no valid second word for a surrogate.  */	      \
 		inptr -= 2;						      \