From 0eb5aa68fbb321477c7e6e0b0452bf1a4186fd99 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 15 Jun 2019 21:33:59 +0100 Subject: Duktape: Hopefully silence issue with %lld Signed-off-by: Daniel Silverstone --- content/handlers/javascript/duktape/duktape.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content') diff --git a/content/handlers/javascript/duktape/duktape.c b/content/handlers/javascript/duktape/duktape.c index 5f78166cb..47621f038 100644 --- a/content/handlers/javascript/duktape/duktape.c +++ b/content/handlers/javascript/duktape/duktape.c @@ -35767,7 +35767,8 @@ DUK_LOCAL void duk__enc_fastint_tval(duk_json_enc_ctx *js_ctx, duk_tval *tv) { * "long long" type exists. Could also rely on C99 directly but that * won't work for older MSVC. */ - DUK_SPRINTF((char *) buf, "%lld", (long long) v); + /*DUK_SPRINTF((char *) buf, "%lld", (long long) v);*/ + DUK_SPRINTF((char *) buf, "%"PRIsizet, (size_t) v); DUK__EMIT_CSTR(js_ctx, (const char *) buf); } #endif -- cgit v1.2.3