Fix IF_SEXT(val, 32). The constants need to have type long to

handle size > 16.
This commit is contained in:
Jake Burkholder 2002-05-13 04:26:38 +00:00
parent 6f98452b38
commit 20409ddf22

View File

@ -148,7 +148,8 @@
/* Sign-extend a field of width W */
#define IF_SEXT(x, w) \
(((x) & (1 << ((w) - 1))) != 0 ? (-1L - ((x) ^ ((1 << (w)) - 1))) : (x))
(((x) & (1L << ((w) - 1))) != 0 ? \
(-1L - ((x) ^ ((1L << (w)) - 1))) : (x))
#if 0
/*