about summary refs log tree commit diff
path: root/sysdeps/generic/strtol.c
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/generic/strtol.c
parent05b2fb299d70224cf81c51beb987b8ad97054058 (diff)
downloadglibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.tar.gz
glibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.tar.xz
glibc-4124ff9971b78f172ee2a8ec07a5542d7a5a56d5.zip
(strtol): Add some more casts to avoid warnings.
Diffstat (limited to 'sysdeps/generic/strtol.c')
-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 28806083cf..1b267753d9 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)