summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3/ir3_print.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2015-12-17 09:42:40 -0600
committerRob Clark <[email protected]>2015-12-18 14:01:07 -0500
commitb201a6ed9f6001ceaa1fc2eaf8a409b044ec97a3 (patch)
tree78278cbe0a9b1bee41fa76509f380d38f893bf28 /src/gallium/drivers/freedreno/ir3/ir3_print.c
parentbb9eb599335ec4ac3a2a579359fb239f16de17e8 (diff)
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" <[email protected]> Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/ir3_print.c')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_print.c2
1 files changed, 1 insertions, 1 deletions
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
}