authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-29 19:00:27-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-29 19:00:27-05:00
loge0c7d12043e37c49537618951bbce47431653609
treeb7adaeda5b6fe83441a3abe142fc4503b16144b8
parentfb2f0cc497c0af897a3d2dd3f612e50522368221
signature Commit is signed but in an unrecognized format.

update std/json.zig to latest language changes

fixes regression from 54231e832bae780c5012fc5cd30932447f1e1d47

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/json.zig+1-1
...@@ -1346,7 +1346,7 @@ fn unescapeStringAlloc(alloc: *Allocator, input: []const u8) ![]u8 {...@@ -1346,7 +1346,7 @@ fn unescapeStringAlloc(alloc: *Allocator, input: []const u8) ![]u8 {
1346 1346
1347 const secondCodeUnit = std.fmt.parseInt(u16, input[inIndex+8 .. inIndex+12], 16) catch unreachable;1347 const secondCodeUnit = std.fmt.parseInt(u16, input[inIndex+8 .. inIndex+12], 16) catch unreachable;
1348 1348
1349 if(std.unicode.utf16leToUtf8(output[outIndex..], [2]u16{ firstCodeUnit, secondCodeUnit })) |byteCount| {1349 if(std.unicode.utf16leToUtf8(output[outIndex..], &[2]u16{ firstCodeUnit, secondCodeUnit })) |byteCount| {
1350 outIndex += byteCount;1350 outIndex += byteCount;
1351 inIndex += 12;1351 inIndex += 12;
1352 } else |_| {1352 } else |_| {