From b201a6ed9f6001ceaa1fc2eaf8a409b044ec97a3 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Thu, 17 Dec 2015 09:42:40 -0600 Subject: [PATCH] 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 --- src/gallium/drivers/freedreno/ir3/ir3_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.30.2