diff options
author | Roland McGrath <roland@gnu.org> | 2002-09-03 02:33:03 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-09-03 02:33:03 +0000 |
commit | a37a5055dca6522713f41c40ecb5c5ab9741e733 (patch) | |
tree | d98ce49a28c6af77640bc923f515e67c4eea2963 /locale/localeconv.c | |
parent | 9219f8533322625b7c25c8a6ecf5772e010b153b (diff) | |
download | glibc-a37a5055dca6522713f41c40ecb5c5ab9741e733.zip glibc-a37a5055dca6522713f41c40ecb5c5ab9741e733.tar.gz glibc-a37a5055dca6522713f41c40ecb5c5ab9741e733.tar.bz2 |
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.
Diffstat (limited to 'locale/localeconv.c')
-rw-r--r-- | locale/localeconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/localeconv.c b/locale/localeconv.c index e1582f5..5cbd99e 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); |