develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH] Re: op/arith.t

Thread Previous | Thread Next
Norton Allen
July 7, 2001 05:45
Re: [PATCH] Re: op/arith.t
Message ID:
Nicholas Clark wrote:
> On Fri, Jul 06, 2001 at 05:20:53PM -0400, Norton Allen wrote:
> > Nicholas Clark wrote:
> > > My hunch is that your strtol isn't setting errno correctly.
> > 
> >   strtol() is OK: It's strtoul that doesn't set errno.
> The appended patch makes toke.c use grok_number rather than strtol and
> strtoul [or atol()], which removes some more conditionally compiled code
> from perl.
> I found I hadn't quite got the length checking code in grok_number correct,
> hence the patch to numeric.c

  It works for me and solves one of my outstanding test failures.
  Thanks, Nick! -Norton

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About