summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-21 20:25:21 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-21 20:25:21 +0000
commita7071cbe637217ee34f4d3407782d84e52b60b4d (patch)
treec2c7fa767de3603d2f9ded69ea89248aaf9569dd
parentceb4bfd63dfbd6e3d1c6ed934d3e17ab3dd84118 (diff)
downloadglibc-a7071cbe637217ee34f4d3407782d84e52b60b4d.tar.gz
glibc-a7071cbe637217ee34f4d3407782d84e52b60b4d.tar.xz
glibc-a7071cbe637217ee34f4d3407782d84e52b60b4d.zip
It is not illegal to parse a minus sign in the strtouXX functions.
The results gets simply negated.
-rw-r--r--stdlib/strtol.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/stdlib/strtol.c b/stdlib/strtol.c
index 396e2ecd74..5fcf17b8e7 100644
--- a/stdlib/strtol.c
+++ b/stdlib/strtol.c
@@ -312,8 +312,6 @@ INTERNAL (strtol) (nptr, endptr, base, group)
 	      ? -((unsigned LONG int) (LONG_MIN + 1)) + 1
 	      : (unsigned LONG int) LONG_MAX))
     overflow = 1;
-#else
-  overflow |= negative;
 #endif
 
   if (overflow)