summaryrefslogtreecommitdiff
path: root/wctype/wctrans.c
diff options
context:
space:
mode:
Diffstat (limited to 'wctype/wctrans.c')
-rw-r--r--wctype/wctrans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wctype/wctrans.c b/wctype/wctrans.c
index 3dd72231cd..6c61c0b630 100644
--- a/wctype/wctrans.c
+++ b/wctype/wctrans.c
@@ -50,9 +50,9 @@ wctrans (const char *property)
if (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_HASH_SIZE) != 0)
{
/* Old locale format. */
- if (cnt == 0)
+ if (cnt == __TOW_toupper)
return (wctrans_t) __ctype32_toupper;
- else if (cnt == 1)
+ else if (cnt == __TOW_tolower)
return (wctrans_t) __ctype32_tolower;
/* We have to search the table. */