# HG changeset patch # User Mike Becker # Date 1737897793 -3600 # Node ID 4f02c1101f2ee9382d620b2220144f6430a23a4d # Parent 48279dbe4811624b35ecff54237b044a40b63457 simplify array access diff -r 48279dbe4811 -r 4f02c1101f2e src/json.c --- a/src/json.c Sun Jan 26 14:15:21 2025 +0100 +++ b/src/json.c Sun Jan 26 14:23:13 2025 +0100 @@ -405,7 +405,7 @@ // character is encoded as a surrogate pair // get next 6 bytes if (str.length >= 12) { - if (*(str.ptr+6) == '\\' && *(str.ptr+7) == 'u') { + if (str.ptr[6] == '\\' && str.ptr[7] == 'u') { cxstring ustr2 = { str.ptr+8, 4 }; if (!cx_strtou16_lc(ustr2, &utf16b, 16, "") && utf16b >= 0xDC00 && utf16b <= 0xDFFF) {