summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2008-09-13 14:25:02 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-09-13 14:26:35 -0600
commitcd1804c43a51d1ea19d0ec856ec67315f355aa68 (patch)
tree526615e4d64955a1c6eb47fd6e2ef07b5dd98d66
parent253784d45e8417a783a71b4af6f39cc9a21b523e (diff)
i915: fix himask constant init for 64-bit build
-rw-r--r--src/mesa/drivers/dri/i915/i915_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_debug.c b/src/mesa/drivers/dri/i915/i915_debug.c
index 8eb1c5b49e..eb1a052b9e 100644
--- a/src/mesa/drivers/dri/i915/i915_debug.c
+++ b/src/mesa/drivers/dri/i915/i915_debug.c
@@ -177,7 +177,7 @@ static GLboolean debug_variable_length_prim( struct debug_stream *stream )
#define BITS( dw, hi, lo, ... ) \
do { \
- unsigned himask = ~0UL >> (31 - (hi)); \
+ unsigned himask = 0xffffffffU >> (31 - (hi)); \
PRINTF("\t\t "); \
PRINTF(__VA_ARGS__); \
PRINTF(": 0x%x\n", ((dw) & himask) >> (lo)); \