summary refs log tree commit diff
path: root/iconvdata/ibm937.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/ibm937.c')
-rw-r--r--iconvdata/ibm937.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconvdata/ibm937.c b/iconvdata/ibm937.c
index edfbf6683c..39468aa0dd 100644
--- a/iconvdata/ibm937.c
+++ b/iconvdata/ibm937.c
@@ -184,10 +184,10 @@ enum
     const char *cp;							      \
 									      \
     /* Use the UCS4 table for single byte.  */				      \
-    cp = __ucs4_to_ibm937sb[ch];					      \
     if (__builtin_expect (ch >= (sizeof (__ucs4_to_ibm937sb)		      \
 				 / sizeof (__ucs4_to_ibm937sb[0])), 0)	      \
-	|| (__builtin_expect (cp[0], '\1') == '\0' && ch != 0))		      \
+	|| (cp = __ucs4_to_ibm937sb[ch],				      \
+	    __builtin_expect (cp[0], '\1') == '\0' && ch != 0))		      \
       {									      \
 	/* Use the UCS4 table for double byte.  */			      \
 	cp = __ucs4_to_ibm937db[ch];					      \