.sub 'main' :main
print_as_integer('-4')
print_as_integer('X-4')
print_as_integer('--4')
.end
.sub 'print_as_integer'
.param string s
$I0 = s
print $I0
print "\n"
.end
produces this output:
-4
0
-4
I think the last line should be "0", but if anyone thinks that "-4" is
correct please say so before I report it as a bug...
Thanks.
Regards,
Roger Browne
> This PIR program:
>
> .sub 'main' :main
> print_as_integer('-4')
> print_as_integer('X-4')
> print_as_integer('--4')
> .end
[ ... ]
> I think the last line should be "0", but if anyone thinks that "-4" is
> correct please say so before I report it as a bug...
Yup - fixed in r10938. Thanks for testing.
> Roger Browne
leo
> Yup - fixed in r10938. Thanks for testing.
OK, then please ignore that patch that I just sent. Thanks for the quick
work!
Regards,
Roger Browne