aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'locale/programs/locale.c')
-rw-r--r--locale/programs/locale.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index e09e6f1e37..93818e02e2 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -657,7 +657,8 @@ show_info (const char *name)
break;
case word:
{
- unsigned int val = (unsigned int) nl_langinfo (item->item_id);
+ unsigned int val =
+ (unsigned int) (unsigned long int) nl_langinfo (item->item_id);
printf ("%d", val);
}
break;