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 8eb1c5b49e1a41b8c068d254416e491feb8f43f1..eb1a052b9e25ce0d94aab692c2bf128b1c0c17f7 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));        \