summaryrefslogtreecommitdiff
path: root/compiler_and_linker/FrontEnd/C
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-14 13:20:48 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-14 13:20:48 +0000
commit5f3c8265f2717f72d68d8eb170fbe2dd114d7b76 (patch)
tree9c35e496749b61b40c2c18626eb45bde75d74d06 /compiler_and_linker/FrontEnd/C
parent00edfdb0d430d8bf1d2fc98cb226114ef271d993 (diff)
downloadMWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.tar.gz
MWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.zip
fix lots more bugs, add better logging
Diffstat (limited to 'compiler_and_linker/FrontEnd/C')
-rw-r--r--compiler_and_linker/FrontEnd/C/CPrep.c2
1 files changed, 1 insertions, 1 deletions
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);