From: Guillaume Melquiond Date: Sat, 13 Sep 2008 20:25:02 +0000 (-0600) Subject: i915: fix himask constant init for 64-bit build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87ccb9504dfda502746c3a00eb607f1837dd265d;p=mesa.git i915: fix himask constant init for 64-bit build --- diff --git a/src/mesa/drivers/dri/i915/i915_debug.c b/src/mesa/drivers/dri/i915/i915_debug.c index 8eb1c5b49e1..eb1a052b9e2 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)); \