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 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


Reply via email to