]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
It is not illegal to parse a minus sign in the strtouXX functions.
authorUlrich Drepper <drepper@redhat.com>
Fri, 21 Mar 1997 20:25:21 +0000 (20:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 21 Mar 1997 20:25:21 +0000 (20:25 +0000)
The results gets simply negated.

stdlib/strtol.c

index 396e2ecd7452a92b9ecae9a29065e8fdbd3ed709..5fcf17b8e75e2075544949520a2148b5c6d280ae 100644 (file)
@@ -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)