summaryrefslogtreecommitdiff
path: root/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'json.c')
-rw-r--r--json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json.c b/json.c
index 3aa6ddd..ade2136 100644
--- a/json.c
+++ b/json.c
@@ -824,7 +824,7 @@ json_decode_string(const char **sp, size_t *length, bool strict)
s += 6;
- uc = 0x10000 | ((uc & 0x3FF) << 10) | (lc & 0x3FF);
+ uc = 0x10000 + (((uc & 0x3FF) << 10) | (lc & 0x3FF));
}
unicode_to_utf8(uc, (unsigned char *) buf);