diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-14 13:20:48 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-14 13:20:48 +0000 |
commit | 5f3c8265f2717f72d68d8eb170fbe2dd114d7b76 (patch) | |
tree | 9c35e496749b61b40c2c18626eb45bde75d74d06 /compiler_and_linker/unsorted/CException.c | |
parent | 00edfdb0d430d8bf1d2fc98cb226114ef271d993 (diff) | |
download | MWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.tar.gz MWCC-5f3c8265f2717f72d68d8eb170fbe2dd114d7b76.zip |
fix lots more bugs, add better logging
Diffstat (limited to 'compiler_and_linker/unsorted/CException.c')
-rw-r--r-- | compiler_and_linker/unsorted/CException.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler_and_linker/unsorted/CException.c b/compiler_and_linker/unsorted/CException.c index c398afb..9bc9d83 100644 --- a/compiler_and_linker/unsorted/CException.c +++ b/compiler_and_linker/unsorted/CException.c @@ -659,7 +659,7 @@ static void CExcept_MangleClassName(TypeClass *tclass) { if (!nspace->is_global && !nspace->is_templ && !nspace->name) { CError_ASSERT(868, cscope_currentfunc != NULL); - sprintf(buf, "*%lx*%lx*", &cscope_currentfunc, &nspace); + sprintf(buf, "*%" PRIxPTR "*%" PRIxPTR "*", &cscope_currentfunc, &nspace); AppendGListName(&name_mangle_list, buf); break; } @@ -734,7 +734,7 @@ static void CExcept_MangleClass(TypeClass *tclass) { AppendGListByte(&name_mangle_list, '!'); if (bcl->offset) { - sprintf(buf, "%ld!", bcl->offset); + sprintf(buf, "%" PRId32 "!", bcl->offset); AppendGListName(&name_mangle_list, buf); } else { AppendGListByte(&name_mangle_list, '!'); |