summaryrefslogtreecommitdiffstats
path: root/contrib/ccan/json/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ccan/json/json.c')
-rw-r--r--contrib/ccan/json/json.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ccan/json/json.c b/contrib/ccan/json/json.c
index 4b58e172..3fd3d434 100644
--- a/contrib/ccan/json/json.c
+++ b/contrib/ccan/json/json.c
@@ -1172,9 +1172,9 @@ void emit_string(SB *out, const char *str)
strcpy(b, "\\uFFFD");
b += 6;
} else {
- *b++ = 0xEF;
- *b++ = 0xBF;
- *b++ = 0xBD;
+ *b++ = (char)0xEF;
+ *b++ = (char)0xBF;
+ *b++ = (char)0xBD;
}
s++;
} else if (c < 0x1F || (c >= 0x80 && escape_unicode)) {