Re: Conversion of string to int (in PIR)

2006-01-06 Thread Roger Browne
On Fri, 2006-01-06 at 17:15 +0100, Leopold Toetsch wrote: > 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

Re: Conversion of string to int (in PIR)

2006-01-06 Thread Leopold Toetsch
On Jan 6, 2006, at 13:59, Roger Browne wrote: 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

Re: Conversion of string to int (in PIR)

2006-01-06 Thread jerry gay
On 1/6/06, Roger Browne <[EMAIL PROTECTED]> wrote: > This PIR program: > >.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 > p

Conversion of string to int (in PIR)

2006-01-06 Thread Roger Browne
This PIR program: .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 las