From 0f81ecf5f4b1804af8f03d34747dce7f581aef7b Mon Sep 17 00:00:00 2001 From: Jason Li Date: Fri, 24 Mar 2017 14:53:25 +0800 Subject: [PATCH] Fix error C3688 when compiling on Visual Studio 2015: invalid literal suffix 'PRId64'; literal operator or literal operator template 'operator ""PRId64' not found --- json_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_object.c b/json_object.c index dfac9f1d55..dfa6f42ba1 100644 --- a/json_object.c +++ b/json_object.c @@ -590,7 +590,7 @@ static int json_object_int_to_json_string(struct json_object* jso, { /* room for 19 digits, the sign char, and a null term */ static char sbuf[21]; - snprintf(sbuf, sizeof(sbuf), "%"PRId64, jso->o.c_int64); + snprintf(sbuf, sizeof(sbuf), "%" PRId64, jso->o.c_int64); return printbuf_memappend (pb, sbuf, strlen(sbuf)); }