From 614e388857a7a55dc8f0e2b28b7d392964c618af Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 17 Nov 2023 16:55:22 +0900 Subject: [PATCH] fixed a 128bit integer issue with va_arg --- lib/fmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fmt.c b/lib/fmt.c index 40c9159..861175b 100644 --- a/lib/fmt.c +++ b/lib/fmt.c @@ -1223,7 +1223,7 @@ static int fmt_outv (moo_fmtout_t* fmtout, va_list ap) sign = 0; if (lm_flag & LF_J) { - #if 0 && defined(__GNUC__) && \ + #if 1 && !defined(__clang__) && defined(__GNUC__) && \ (MOO_SIZEOF_UINTMAX_T > MOO_SIZEOF_OOW_T) && \ (MOO_SIZEOF_UINTMAX_T != MOO_SIZEOF_LONG_LONG) && \ (MOO_SIZEOF_UINTMAX_T != MOO_SIZEOF_LONG) @@ -1265,7 +1265,7 @@ static int fmt_outv (moo_fmtout_t* fmtout, va_list ap) handle_sign: if (lm_flag & LF_J) { - #if 0 && defined(__GNUC__) && \ + #if 1 && !defined(__clang__) && defined(__GNUC__) && \ (MOO_SIZEOF_INTMAX_T > MOO_SIZEOF_OOI_T) && \ (MOO_SIZEOF_UINTMAX_T != MOO_SIZEOF_LONG_LONG) && \ (MOO_SIZEOF_UINTMAX_T != MOO_SIZEOF_LONG)