[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rcparse.y: unary negation of unsigned type
From: |
amores perros |
Subject: |
rcparse.y: unary negation of unsigned type |
Date: |
Sat, 08 Feb 2003 07:54:23 +0000 |
rcparse.y
(downloaded today in binutils-2.13.2.1)
circa line 1606
| '-' sizednumexpr %prec NEG
{
$$.val = - $2.val;
Isn't that .val making it an unsigned type, in which case the
unary minus does... what ?
I'm thinking it ought to be this (but I am not very clear on
signed/unsigned issues!)
$$.val = (unsigned long)-(signed long)$2.val;
Cordially,
Perry
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
- rcparse.y: unary negation of unsigned type,
amores perros <=