From 5f3c8265f2717f72d68d8eb170fbe2dd114d7b76 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 14 Jan 2023 13:20:48 +0000 Subject: fix lots more bugs, add better logging --- compiler_and_linker/FrontEnd/C/CPrep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler_and_linker/FrontEnd/C') diff --git a/compiler_and_linker/FrontEnd/C/CPrep.c b/compiler_and_linker/FrontEnd/C/CPrep.c index 36ba0f9..8392b44 100644 --- a/compiler_and_linker/FrontEnd/C/CPrep.c +++ b/compiler_and_linker/FrontEnd/C/CPrep.c @@ -2418,7 +2418,7 @@ static char *XpandSpecialMacro(Macro *macro) { } else if (macro == &trgtM) { return CPrep_CheckTarget() ? "1" : "0"; } else if (macro == &lineM) { - sprintf(buf, "%ld", linenumber); + sprintf(buf, "%" PRId32, linenumber); do_string: strptr = aalloc(strlen(buf) + 1); strcpy(strptr, buf); -- cgit v1.2.3