mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-10 03:10:09 +00:00
2002-09-10 Roland McGrath <roland@redhat.com>
* posix/bug-regex5.c (main): Use `union locale_data_value' rather than a cast to turn nl_langinfo return value into an integer.
This commit is contained in:
parent
10126cea06
commit
0162586139
@ -11,6 +11,7 @@ main (void)
|
||||
const unsigned char *extra;
|
||||
uint32_t nrules;
|
||||
char *ca;
|
||||
union locale_data_value u;
|
||||
|
||||
ca = setlocale (LC_ALL, "da_DK.ISO-8859-1");
|
||||
if (ca == NULL)
|
||||
@ -27,7 +28,8 @@ main (void)
|
||||
return 1;
|
||||
}
|
||||
|
||||
table_size = (size_t) nl_langinfo (_NL_COLLATE_SYMB_HASH_SIZEMB);
|
||||
u.string = nl_langinfo (_NL_COLLATE_SYMB_HASH_SIZEMB);
|
||||
table_size = u.word;
|
||||
symb_table = (const int32_t *) nl_langinfo (_NL_COLLATE_SYMB_TABLEMB);
|
||||
extra = (const unsigned char *) nl_langinfo (_NL_COLLATE_SYMB_EXTRAMB);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user