The inc_n_nc op does this:

  (NV)NUM_REG(P1) += P2

Unfortunately the (NV) cast means that the LHS is not an lvalue and
cannot therefore be assigned to in ANSI C. It seems that gcc allows
you to get away with this, but other compiler don't.

The cast is also unnecessary as NUM_REG() gives an NV anyway, so this
patch removes the cast:

Index: basic_opcodes.ops
===================================================================
RCS file: /home/perlcvs/parrot/basic_opcodes.ops,v
retrieving revision 1.11
diff -u -r1.11 basic_opcodes.ops
--- basic_opcodes.ops   2001/09/13 07:27:46     1.11
+++ basic_opcodes.ops   2001/09/13 08:27:40
@@ -219,7 +219,7 @@
 
 // INC Nx, nnn
 AUTO_OP inc_n_nc {
-  (NV)NUM_REG(P1) += P2;
+  NUM_REG(P1) += P2;
 }
 
 // DEC Nx

Tom

-- 
Tom Hughes ([EMAIL PROTECTED])
http://www.compton.nu

Reply via email to