From: Rob Herring Date: Thu, 17 Dec 2015 15:42:40 +0000 (-0600) Subject: freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b201a6ed9f6001ceaa1fc2eaf8a409b044ec97a3;p=mesa.git freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabled Android builds with -Werror=pointer-to-int-cast causing an error on 32-bit builds. Cc: "11.0 11.1" Signed-off-by: Rob Herring Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_print.c b/src/gallium/drivers/freedreno/ir3/ir3_print.c index 07e03d26908..a84e7989cf8 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_print.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_print.c @@ -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 }