From 692ebfd96817120d5cee358526af92a6d200b5ea Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Wed, 21 Nov 2018 18:32:28 +0100 Subject: misc -Wpedantic fixes --- contrib/ccan/json/json.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib') 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)) { -- cgit v1.2.3