Merge pull request #652 from lassik/fix-printf

Fix printf warning in json.c
This commit is contained in:
Alex Shinn 2020-05-27 07:51:52 +09:00 committed by GitHub
commit add9983728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {