From c251594f0abcc0b0793727b75256e9899096fc99 Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Wed, 27 May 2020 00:51:30 +0300 Subject: [PATCH] Fix printf warning in json.c --- lib/chibi/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chibi/json.c b/lib/chibi/json.c index f47bfed8..d6d85342 100644 --- a/lib/chibi/json.c +++ b/lib/chibi/json.c @@ -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) {