aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-03 02:33:03 +0000
committerRoland McGrath <roland@gnu.org>2002-09-03 02:33:03 +0000
commita37a5055dca6522713f41c40ecb5c5ab9741e733 (patch)
treed98ce49a28c6af77640bc923f515e67c4eea2963
parent9219f8533322625b7c25c8a6ecf5772e010b153b (diff)
downloadglibc-a37a5055dca6522713f41c40ecb5c5ab9741e733.tar
glibc-a37a5055dca6522713f41c40ecb5c5ab9741e733.tar.gz
glibc-a37a5055dca6522713f41c40ecb5c5ab9741e733.tar.bz2
glibc-a37a5055dca6522713f41c40ecb5c5ab9741e733.zip
2002-09-02 Roland McGrath <roland@redhat.com>
* locale/localeconv.c (__localeconv): Cast -1 to char to avoid warnings on platorms where char is unsigned.
-rw-r--r--locale/localeconv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/localeconv.c b/locale/localeconv.c
index e1582f5942..5cbd99ed16 100644
--- a/locale/localeconv.c
+++ b/locale/localeconv.c
@@ -29,7 +29,7 @@ __localeconv (void)
result.decimal_point = (char *) _NL_CURRENT (LC_NUMERIC, DECIMAL_POINT);
result.thousands_sep = (char *) _NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP);
result.grouping = (char *) _NL_CURRENT (LC_NUMERIC, GROUPING);
- if (*result.grouping == CHAR_MAX || *result.grouping == -1)
+ if (*result.grouping == CHAR_MAX || *result.grouping == (char) -1)
result.grouping = (char *) "";
result.int_curr_symbol = (char *) _NL_CURRENT (LC_MONETARY, INT_CURR_SYMBOL);
@@ -39,7 +39,7 @@ __localeconv (void)
result.mon_thousands_sep = (char *) _NL_CURRENT (LC_MONETARY,
MON_THOUSANDS_SEP);
result.mon_grouping = (char *) _NL_CURRENT (LC_MONETARY, MON_GROUPING);
- if (*result.mon_grouping == CHAR_MAX || *result.mon_grouping == -1)
+ if (*result.mon_grouping == CHAR_MAX || *result.mon_grouping == (char) -1)
result.mon_grouping = (char *) "";
result.positive_sign = (char *) _NL_CURRENT (LC_MONETARY, POSITIVE_SIGN);
result.negative_sign = (char *) _NL_CURRENT (LC_MONETARY, NEGATIVE_SIGN);