From 3d85965b98b8c94a78c21592f92655e2b2fdaf30 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 17 Nov 2023 16:56:05 +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 670bae8..337795c 100644 --- a/lib/fmt.c +++ b/lib/fmt.c @@ -1244,7 +1244,7 @@ static int fmt_outv (hcl_fmtout_t* fmtout, va_list ap) sign = 0; if (lm_flag & LF_J) { - #if 0 && defined(__GNUC__) && \ + #if 1 && !defined(__clang__) && defined(__GNUC__) && \ (HCL_SIZEOF_UINTMAX_T > HCL_SIZEOF_OOW_T) && \ (HCL_SIZEOF_UINTMAX_T != HCL_SIZEOF_LONG_LONG) && \ (HCL_SIZEOF_UINTMAX_T != HCL_SIZEOF_LONG) @@ -1288,7 +1288,7 @@ static int fmt_outv (hcl_fmtout_t* fmtout, va_list ap) handle_sign: if (lm_flag & LF_J) { - #if 0 && defined(__GNUC__) && \ + #if 1 && !defined(__clang__) && defined(__GNUC__) && \ (HCL_SIZEOF_INTMAX_T > HCL_SIZEOF_OOI_T) && \ (HCL_SIZEOF_UINTMAX_T != HCL_SIZEOF_LONG_LONG) && \ (HCL_SIZEOF_UINTMAX_T != HCL_SIZEOF_LONG)