From 251008c1bfc212b6af88441cfd2f342717497648 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Wed, 23 Aug 2023 13:02:37 -0400 Subject: [PATCH] asahi: Fix 32-bit x86 build with correct data type for overflow error message Currently, when building on 32-bit x86, we get compilation errors due to data type mis-matches in the format string. This should fix the issue. Signed-off-by: Neal Gompa Part-of: --- src/asahi/lib/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/asahi/lib/decode.c b/src/asahi/lib/decode.c index 07b1c86af9a..1ec33bee45a 100644 --- a/src/asahi/lib/decode.c +++ b/src/asahi/lib/decode.c @@ -234,8 +234,8 @@ __agxdecode_fetch_gpu_mem(const struct agx_bo *mem, uint64_t gpu_va, fprintf(stderr, "Overflowing to unknown memory %" PRIx64 " of size %zu (max size %zu) in %s:%d\n", - gpu_va, size, mem->size - (gpu_va - mem->ptr.gpu), filename, - line); + gpu_va, size, (size_t)(mem->size - (gpu_va - mem->ptr.gpu)), + filename, line); fflush(agxdecode_dump_stream); assert(0); }