on master help sign in
delete invalid branch in c
commit6d2e0a8e56e512623c4680ff8a0043750fed7810 authorwinterland1989 <winterland1989@gmail.com> dateWed 20 Jul 2016, 14:46 (10 years ago) parent2733775
1 file changed+1−3
cbits/unescape_string.c+1−3
cbits/unescape_string.c+1−3
@@ -74,9 +74,7 @@ int _js_decode_string(uint16_t *const dest, size_t *destoff,
7474 standard:
7575 // Test end of stream
7676 while (s < srcend) {
77− if (*s <= 127)
78− codepoint = *s++;
79− else if (decode(&state, &codepoint, *s++) != UTF8_ACCEPT) {
77+ if (decode(&state, &codepoint, *s++) != UTF8_ACCEPT) {
8078 if (state == UTF8_REJECT) { return -1; }
8179 continue;
8280 }