i915: fix himask constant init for 64-bit build
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>
Sat, 13 Sep 2008 20:25:02 +0000 (14:25 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Sep 2008 20:25:02 +0000 (14:25 -0600)
src/mesa/drivers/dri/i915/i915_debug.c

index 8eb1c5b..eb1a052 100644 (file)
@@ -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));        \