freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabled
authorRob Herring <robh@kernel.org>
Thu, 17 Dec 2015 15:42:40 +0000 (09:42 -0600)
committerRob Clark <robclark@freedesktop.org>
Fri, 18 Dec 2015 19:01:07 +0000 (14:01 -0500)
Android builds with -Werror=pointer-to-int-cast causing an error on 32-bit
builds.

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_print.c

index 07e03d2..a84e798 100644 (file)
@@ -143,7 +143,7 @@ block_id(struct ir3_block *block)
 #ifdef DEBUG
        return block->serialno;
 #else
-       return (uint32_t)(uint64_t)block;
+       return (uint32_t)(unsigned long)block;
 #endif
 }