mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
It is not illegal to parse a minus sign in the strtouXX functions.
The results gets simply negated.
This commit is contained in:
parent
ceb4bfd63d
commit
a7071cbe63
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user