Skip to content

Commit

Permalink
Fix error C3688 when compiling on Visual Studio 2015: invalid literal…
Browse files Browse the repository at this point in the history
… suffix 'PRId64'; literal operator or literal operator template 'operator ""PRId64' not found
  • Loading branch information
jj1118 committed Mar 24, 2017
1 parent 4e67365 commit 0f81ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 0f81ecf

Please sign in to comment.