diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-11-21 18:32:28 +0100 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2018-11-26 15:18:23 +0100 |
commit | 692ebfd96817120d5cee358526af92a6d200b5ea (patch) | |
tree | 20c0a5f2604f1e3659230a7464186a399168a868 /contrib | |
parent | treewide: use more standard variadic macros (diff) | |
download | knot-resolver-692ebfd96817120d5cee358526af92a6d200b5ea.tar.xz knot-resolver-692ebfd96817120d5cee358526af92a6d200b5ea.zip |
misc -Wpedantic fixes
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ccan/json/json.c | 6 |
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)) { |