This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: strtol broken?
- To: Zack Weinberg <zack@rabi.phys.columbia.edu>
- Subject: Re: strtol broken?
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 28 Jul 1998 22:12:04 +0200
- Cc: libc-hacker@cygnus.com
- Mail-Copies-To: never
- References: <199807281926.PAA11379@rabi.phys.columbia.edu>
>>>>> Zack Weinberg writes:
> 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.
It's a typo in Uli's last patch. He accepted already the appended
patch.
Andreas
1998-07-28 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* stdlib/strtol.c (STRTOL_LONG_MAX): Correct typo in last patch -
define as LONG_MAX.
--- stdlib/strtol.c.~1~ Tue Jul 28 07:13:33 1998
+++ stdlib/strtol.c Tue Jul 28 10:33:42 1998
@@ -147,7 +147,7 @@
# define LONG_MAX ((long int) (ULONG_MAX >> 1))
# endif
# define STRTOL_LONG_MIN LONG_MIN
-# define STRTOL_LONG_MAX ULONG_MAX
+# define STRTOL_LONG_MAX LONG_MAX
# define STRTOL_ULONG_MAX ULONG_MAX
#endif
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@alma.student.uni-kl.de