Fix printf warning in json.c

This commit is contained in:
Lassi Kortela 2020-05-27 00:51:30 +03:00
parent 9901a67b20
commit c251594f0a

View file

@ -415,7 +415,7 @@ sexp unparse_json_string(sexp ctx, sexp self, const sexp obj) {
sprintf(cout, "\\t");
break;
default:
sprintf(cout, "%c", ch);
sprintf(cout, "%c", (int)ch);
break;
}
} else if(ch <= 0xFFFF) {