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 295c47e58c26ad5f68695b27f1973724c77dd559..b6c442dff725cc7a1360790c9a74d0bcda9fbba8 100644 (file)
@@ -232,7 +232,7 @@ BITS(
                         ... )
 {
    va_list  args;
-   unsigned himask = ~0UL >> (31 - (hi));
+   unsigned himask = 0xFFFFFFFFUL >> (31 - (hi));
 
    PRINTF(stream, "\t\t ");