Fix missing yield inside std/json string decoder

This commit is contained in:
Nigel Tao committed 2020-02-17 13:17:06 +11:00
1 parent af666564bb
commit 0711f23fed
3 files changed
+8 -2

No files matched your search

+1 -1
View File
@@ -246,8 +246,8 @@ parsed_token parse_next_token() {
// ----
const char* handle_string(parsed_token pt) {
TRY(write_dst("\"", 1));
while (true) {
TRY(write_dst("\"", 1));
TRY(write_dst(pt.data.ptr, pt.data.len));
if ((pt.token.value_base_detail() & 1) == 0) {
break;