Re: Patch to fix += on rvalue

2001-09-13 Thread Dan Sugalski
At 09:30 AM 9/13/2001 +0100, Simon Cozens wrote: >On Thu, Sep 13, 2001 at 09:29:44AM +0100, Tom Hughes wrote: > > 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 see

Patch to fix += on rvalue

2001-09-13 Thread Tom Hughes
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 a