From 37aaf9d069f31e87524ef93612b20d146bb12b0f Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Fri, 2 Jun 2017 02:36:05 +0300 Subject: [PATCH] Dump fastints as 123_F (not 123F) in debug prints --- src-input/duk_debug_vsnprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-input/duk_debug_vsnprintf.c b/src-input/duk_debug_vsnprintf.c index d6cd7b57..d9972771 100644 --- a/src-input/duk_debug_vsnprintf.c +++ b/src-input/duk_debug_vsnprintf.c @@ -764,7 +764,7 @@ DUK_LOCAL void duk__print_tval(duk__dprint_state *st, duk_tval *tv) { case DUK_TAG_FASTINT: DUK_ASSERT(!DUK_TVAL_IS_UNUSED(tv)); DUK_ASSERT(DUK_TVAL_IS_NUMBER(tv)); - duk_fb_sprintf(fb, "%.18gF", (double) DUK_TVAL_GET_NUMBER(tv)); + duk_fb_sprintf(fb, "%.18g_F", (double) DUK_TVAL_GET_NUMBER(tv)); break; #endif default: {