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/unsorted/CException.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler_and_linker/unsorted/CException.c') 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, '!'); -- cgit v1.2.3