On 07/10/2007, Rick Delaney <rick bort.ca> wrote:
> The problem here is that the arg passed to int() is
checked if IOK
> (integer) but because it's a reference, it's not. So
it is treated as a
> float (NV). And currently it actually calls mynum()
twice for the
> second int() call. The attached patch fixes that and
should fix your
> problem, although I couldn't test it directly. I added
tests for the
> call-twice problem, but wasn't sure how to add one for
the 64-bit int
> issue.
Thanks, applied as change #32059, and I confirmed that fixes
the bug
on 64-bit int perl.
|