diff options
Diffstat (limited to 'posix/bug-regex5.c')
-rw-r--r-- | posix/bug-regex5.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/posix/bug-regex5.c b/posix/bug-regex5.c index 9d0eef1..ee4d652 100644 --- a/posix/bug-regex5.c +++ b/posix/bug-regex5.c @@ -21,7 +21,8 @@ main (void) } printf ("current locale : %s\n", ca); - nrules = (size_t) nl_langinfo (_NL_COLLATE_NRULES); + u.string = nl_langinfo (_NL_COLLATE_NRULES); + nrules = u.word; if (nrules == 0) { printf("No rule\n"); |