From 6ca980b1487fa844d2df854cb4031d6d6b1c110a Mon Sep 17 00:00:00 2001 From: nishi Date: Sun, 5 May 2024 17:12:30 +0000 Subject: [PATCH] fix git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@115 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- Serenade/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Serenade/util.c b/Serenade/util.c index 01a2811..1671352 100644 --- a/Serenade/util.c +++ b/Serenade/util.c @@ -66,13 +66,13 @@ void sn_print_to(FILE* f, struct sn_generic* gen) { } else if(gen->type == SN_TYPE_FUNCTION) { fprintf(f, "name == NULL ? "(anonymous)" : gen->name); if(gen->name == NULL) { - fprintf(f, ":%x", gen->handler); + fprintf(f, ":%llx", (unsigned long long)gen->handler); } fprintf(f, ">"); } else if(gen->type == SN_TYPE_VARIABLE) { fprintf(f, "", gen->name == NULL ? "(unnamed)" : gen->name); } else if(gen->type == SN_TYPE_PTR) { - fprintf(f, "", gen->ptr); + fprintf(f, "", (unsigned long long)gen->ptr); } } -- 2.43.0