i915g: fix debug dump on 64 bit systems
authorMichael Karcher <freedesktop-bugzilla@mkarcher.dialup.fu-berlin.de>
Sun, 11 Dec 2011 21:24:10 +0000 (13:24 -0800)
committerStephane Marchesin <stephane.marchesin@gmail.com>
Sun, 11 Dec 2011 21:24:10 +0000 (13:24 -0800)
src/gallium/drivers/i915/i915_debug.c

index 295c47e..b6c442d 100644 (file)
@@ -232,7 +232,7 @@ BITS(
                         ... )
 {
    va_list  args;
-   unsigned himask = ~0UL >> (31 - (hi));
+   unsigned himask = 0xFFFFFFFFUL >> (31 - (hi));
 
    PRINTF(stream, "\t\t ");