Re: lvalue casts don't work

2003-10-02 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > The compiling trick. But that makes me shiver in my boots. > *(UINTVAL*) &$1 Yep. Thanks for the correction. Anyway I've checked in a snippet posted here some time ago by Benjamin Goldberg. This defines: LVALUE_CAST(type, value) So above line in b

Re: lvalue casts don't work

2003-10-01 Thread Luke Palmer
Andy Dougherty writes: > On Wed, 1 Oct 2003, Leopold Toetsch wrote: > > > Andy Dougherty wrote: > > > > > Building with Sun's Workshop compiler, I'm currently getting stuck when > > > comiling core_ops.c with the message: > > > > > > "bit.ops", line 349: a cast does not yield an lvalue > > >

Re: lvalue casts don't work

2003-10-01 Thread Andy Dougherty
On Wed, 1 Oct 2003, Leopold Toetsch wrote: > Andy Dougherty wrote: > > > Building with Sun's Workshop compiler, I'm currently getting stuck when > > comiling core_ops.c with the message: > > > > "bit.ops", line 349: a cast does not yield an lvalue > > ((UINTVAL) $1 >>= $2; > *(

Re: lvalue casts don't work

2003-10-01 Thread Leopold Toetsch
Andy Dougherty wrote: Building with Sun's Workshop compiler, I'm currently getting stuck when comiling core_ops.c with the message: "bit.ops", line 349: a cast does not yield an lvalue "bit.ops", line 349: a cast does not yield an lvalue Sure enough, line 349 in bit.ops is ((UINTVAL