Duktape: Probably should use ssize_t

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-06-15 21:34:47 +01:00
parent 84b8e7dfa1
commit 8265b8b66f

View File

@ -35548,7 +35548,7 @@ DUK_LOCAL void duk__enc_fastint_tval(duk_json_enc_ctx *js_ctx, duk_tval *tv) {
* won't work for older MSVC.
*/
/*DUK_SPRINTF((char *) buf, "%lld", (long long) v);*/
DUK_SPRINTF((char *) buf, "%"PRIsizet, (size_t) v);
DUK_SPRINTF((char *) buf, "%"PRIsizet, (ssize_t) v);
DUK__EMIT_CSTR(js_ctx, (const char *) buf);
}
#endif