From 8afbf3f5ff6e7a8a880b290ee79868b585451d7f Mon Sep 17 00:00:00 2001 From: nyanpasu64 Date: Sat, 5 Mar 2022 03:30:14 -0800 Subject: [PATCH] Fix format strings to properly format uintptr_t --- src/cc65/codegen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc65/codegen.c b/src/cc65/codegen.c index 59be677fd..4f737555c 100644 --- a/src/cc65/codegen.c +++ b/src/cc65/codegen.c @@ -4403,15 +4403,15 @@ void g_defdata (unsigned flags, uintptr_t val, long offs) switch (flags & CF_TYPEMASK) { case CF_CHAR: - AddDataLine ("\t.byte\t$%02lX", val & 0xFF); + AddDataLine ("\t.byte\t$%02"PRIXPTR, val & 0xFF); break; case CF_INT: - AddDataLine ("\t.word\t$%04lX", val & 0xFFFF); + AddDataLine ("\t.word\t$%04"PRIXPTR, val & 0xFFFF); break; case CF_LONG: - AddDataLine ("\t.dword\t$%08lX", val & 0xFFFFFFFF); + AddDataLine ("\t.dword\t$%08"PRIXPTR, val & 0xFFFFFFFF); break; default: