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

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

Thread Previous | Thread Next
Jarkko Hietaniemi
July 7, 2001 09:50
Re: [PATCH] Re: op/arith.t
Message ID:
On Sat, Jul 07, 2001 at 01:04:54PM +0100, 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.

Thanks, applied.

> I found I hadn't quite got the length checking code in grok_number correct,
> hence the patch to numeric.c
> I think it's correct now - I tested it with the following program

Seems to work in Alpha, too.

$jhi++; #
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

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