[Mesa-dev] [PATCH] freedreno/ir3: fix 32-bit builds with pointer-to-int-cast error enabled
Rob Herring
robh at kernel.org
Thu Dec 17 07:42:40 PST 2015
Android builds with -Werror=pointer-to-int-cast causing an error on 32-bit
builds.
Signed-off-by: Rob Herring <robh at kernel.org>
---
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 07e03d2..a84e798 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.5.0
More information about the mesa-dev
mailing list