Commit 177efd15 authored by Karl Heuer's avatar Karl Heuer
Browse files

[EXPLICIT_SIGN_EXTEND] (XINT): Use symbolic constants.

parent 04eae667
......@@ -338,7 +338,7 @@ extern int pure_size;
#ifdef EXPLICIT_SIGN_EXTEND
/* Make sure we sign-extend; compilers have been known to fail to do so. */
#define XINT(a) (((a).i << 8) >> 8)
#define XINT(a) (((a).i << (INTBITS-VALBITS)) >> (INTBITS-VALBITS))
#else
#define XINT(a) ((a).s.val)
#endif /* EXPLICIT_SIGN_EXTEND */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment