aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-28 10:16:21 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-28 10:16:21 +0000
commit4124ff9971b78f172ee2a8ec07a5542d7a5a56d5 (patch)
tree224e219a6b6340f2693fd037b0b84d298dccc3d5 /sysdeps
parent05b2fb299d70224cf81c51beb987b8ad97054058 (diff)
downloadglibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.zip
glibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.tar.gz
glibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.tar.bz2
(strtol): Add some more casts to avoid warnings.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/strtol.c8
1 files changed, 4 insertions, 4 deletions
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)