about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-10 22:35:39 +0000
committerRoland McGrath <roland@gnu.org>2002-09-10 22:35:39 +0000
commit0162586139eea25e9d626eb98edca9434fa4da40 (patch)
treeae33f6481a502bfac1701ae040818dfb73534e28 /posix
parent10126cea06c69c5cb86d0fd82c24b31fefe0a820 (diff)
downloadglibc-0162586139eea25e9d626eb98edca9434fa4da40.tar.gz
glibc-0162586139eea25e9d626eb98edca9434fa4da40.tar.xz
glibc-0162586139eea25e9d626eb98edca9434fa4da40.zip
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.
Diffstat (limited to 'posix')
-rw-r--r--posix/bug-regex5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/posix/bug-regex5.c b/posix/bug-regex5.c
index 58f487aa84..9d0eef1e2f 100644
--- a/posix/bug-regex5.c
+++ b/posix/bug-regex5.c
@@ -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);