diff options
Diffstat (limited to 'locale/programs')
-rw-r--r-- | locale/programs/ld-ctype.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index c82a36b80c..6273663933 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -3108,10 +3108,10 @@ Computing table size for character classes might take a while..."), if (wch != ILLEGAL_CHAR_VALUE) { /* Store the value. */ - size_t nr = idx % ctype->plane_size; + size_t nr = wch % ctype->plane_size; size_t depth = 0; - while (ctype->names[nr + depth * ctype->plane_size] != nr) + while (ctype->names[nr + depth * ctype->plane_size] != wch) ++depth; assert (depth < ctype->plane_cnt); |