| author | |
| committer | |
| log | 7bed747a68aa7969649bb070c98042a699978b18 |
| tree | d8d8f25927cda658c653984fd22e0826bee0e2b3 |
| parent | 84fbe4db83738537df46119a31a806874f098240 |
266/284 tests passed; 18 failed1 files changed, 3 insertions(+), 1 deletions(-)
json.zig+3-1| ... | ... | @@ -134,7 +134,9 @@ fn parseString(alloc: std.mem.Allocator, p: *Parser) anyerror!?StringIndex { |
| 134 | 134 | break; |
| 135 | 135 | } |
| 136 | 136 | if (c != '\\') { |
| 137 | try characters.append(@intCast(c)); | |
| 137 | const l = std.unicode.utf8CodepointSequenceLength(c) catch unreachable; | |
| 138 | const b = p.temp.items[p.idx - l ..][0..l]; | |
| 139 | try characters.appendSlice(b); | |
| 138 | 140 | continue; |
| 139 | 141 | } |
| 140 | 142 | switch (try p.shift()) { |