From a37a5055dca6522713f41c40ecb5c5ab9741e733 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 3 Sep 2002 02:33:03 +0000 Subject: 2002-09-02 Roland McGrath * locale/localeconv.c (__localeconv): Cast -1 to char to avoid warnings on platorms where char is unsigned. --- locale/localeconv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'locale/localeconv.c') 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); -- cgit v1.2.3