"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) $1 >>= $2;
I don't know enough about .ops file syntax to suggest a fix offhand.
--
Andy Dougherty doug...@lafayette.edu
> 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) $1 >>= $2;
*(UINTVAL*) $1
should do the trick.
leo
> 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;
> *(UINTVAL*) $1
>
> should do the trick.
Thanks. That lets the compile succeed. I still fail t/op/bitwise test 7;
I don't yet know if it's related. I'll need to investigate further.
--
Andy Dougherty doug...@lafayette.edu
The compiling trick. But that makes me shiver in my boots.
*(UINTVAL*) &$1
Luke
> *(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 bit.ops is now:
LVALUE_CAST(UINTVAL, $1) >>= $2;
> Luke
leo