This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
strtol broken?
- To: libc-hacker@cygnus.com
- Subject: strtol broken?
- From: Zack Weinberg <zack@rabi.phys.columbia.edu>
- Date: Tue, 28 Jul 1998 15:26:43 -0400
The strtol in latest CVS fails part of the test suite. I'm not sure
if it's strtol or the tester that's broken.
strtol("2147483648", , 0) test 3 failed:
returns -2147483648, expected 2147483647
errno 0 (Success) instead of 34 (Numerical result out of range)
strtol("214748364888", , 0) test 4 failed:
returns -1, expected 2147483647
strtol("2147483650", , 0) test 5 failed:
returns -2147483646, expected 2147483647
errno 0 (Success) instead of 34 (Numerical result out of range)
strtol("0x1122334455z", , 16) test 9 failed:
returns -1, expected 2147483647
zw