From 4124ff9971b78f172ee2a8ec07a5542d7a5a56d5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 28 Aug 2002 10:16:21 +0000 Subject: (strtol): Add some more casts to avoid warnings. --- sysdeps/generic/strtol.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/strtol.c b/sysdeps/generic/strtol.c index 2880608..1b26775 100644 --- a/sysdeps/generic/strtol.c +++ b/sysdeps/generic/strtol.c @@ -361,9 +361,9 @@ INTERNAL (strtol) (nptr, endptr, base, group LOCALE_PARAM) ) { for (c = *end; c != L_('\0'); c = *++end) - if (((wchar_t) c < L_('0') || (wchar_t) c > L_('9')) + if (((STRING_TYPE) c < L_('0') || (STRING_TYPE) c > L_('9')) # ifdef USE_WIDE_CHAR - && c != thousands + && (wchar_t) c != thousands # else && ({ for (cnt = 0; cnt < thousands_len; ++cnt) if (thousands[cnt] != end[cnt]) @@ -400,7 +400,7 @@ INTERNAL (strtol) (nptr, endptr, base, group LOCALE_PARAM) c -= L_('0'); #ifdef USE_NUMBER_GROUPING # ifdef USE_WIDE_CHAR - else if (grouping && c == thousands) + else if (grouping && (wchar_t) c == thousands) continue; # else else if (thousands_len) @@ -448,7 +448,7 @@ INTERNAL (strtol) (nptr, endptr, base, group LOCALE_PARAM) c -= L_('0'); #ifdef USE_NUMBER_GROUPING # ifdef USE_WIDE_CHAR - else if (grouping && c == thousands) + else if (grouping && (wchar_t) c == thousands) continue; # else else if (thousands_len) -- cgit v1.1