aboutsummaryrefslogtreecommitdiff
path: root/iconvdata
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-05 22:45:16 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-05 22:45:16 +0000
commitb0f1ca68448e9049cb6d266f327ca36523f3f675 (patch)
treec610854cf53adba6c27e8ed8cdb95f4a98862eb2 /iconvdata
parentadd40772bf9dc663fb4fefc024ba6d7da72fa55c (diff)
downloadglibc-b0f1ca68448e9049cb6d266f327ca36523f3f675.tar
glibc-b0f1ca68448e9049cb6d266f327ca36523f3f675.tar.gz
glibc-b0f1ca68448e9049cb6d266f327ca36523f3f675.tar.bz2
glibc-b0f1ca68448e9049cb6d266f327ca36523f3f675.zip
Update.
2000-06-05 Ulrich Drepper <drepper@redhat.com> * iconvdata/ksc5601.h (ksc5601_to_ucs4): Undo *s in all cases of an error.
Diffstat (limited to 'iconvdata')
-rw-r--r--iconvdata/ksc5601.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/iconvdata/ksc5601.h b/iconvdata/ksc5601.h
index d0b1b0cab6..7fbd41f571 100644
--- a/iconvdata/ksc5601.h
+++ b/iconvdata/ksc5601.h
@@ -72,14 +72,15 @@ ksc5601_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset)
if (idx >= 1410 && idx < 1410 + KSC5601_HANGUL)
return (__ksc5601_hangul_to_ucs[idx - 1410]
- ?: ((*s) -= 2, __UNKNOWN_10646_CHAR));
+ ?: (*s -= 2, __UNKNOWN_10646_CHAR));
else if (idx >= 3854)
/* Hanja : row 42 - row 93 : 3854 = 94 * (42-1) */
return (__ksc5601_hanja_to_ucs[idx - 3854]
- ?: ((*s) -= 2, __UNKNOWN_10646_CHAR));
+ ?: (*s -= 2, __UNKNOWN_10646_CHAR));
else if (idx <= 1114)
- return __ksc5601_sym_to_ucs[idx] ?: ((*s) -= 2, __UNKNOWN_10646_CHAR);
+ return __ksc5601_sym_to_ucs[idx] ?: (*s -= 2, __UNKNOWN_10646_CHAR);
+ *s -= 2;
return __UNKNOWN_10646_CHAR;
}