diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-29 19:00:27 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-29 19:00:27 -0500 |
| commit | e0c7d12043e37c49537618951bbce47431653609 (patch) | |
| tree | b7adaeda5b6fe83441a3abe142fc4503b16144b8 /lib/std | |
| parent | fb2f0cc497c0af897a3d2dd3f612e50522368221 (diff) | |
| download | zig-e0c7d12043e37c49537618951bbce47431653609.tar.gz zig-e0c7d12043e37c49537618951bbce47431653609.zip | |
update std/json.zig to latest language changes
fixes regression from 54231e832bae780c5012fc5cd30932447f1e1d47
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/json.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/json.zig b/lib/std/json.zig index 8d2d7d7477..e278c49f00 100644 --- a/lib/std/json.zig +++ b/lib/std/json.zig @@ -1346,7 +1346,7 @@ fn unescapeStringAlloc(alloc: *Allocator, input: []const u8) ![]u8 { const secondCodeUnit = std.fmt.parseInt(u16, input[inIndex+8 .. inIndex+12], 16) catch unreachable; - if(std.unicode.utf16leToUtf8(output[outIndex..], [2]u16{ firstCodeUnit, secondCodeUnit })) |byteCount| { + if(std.unicode.utf16leToUtf8(output[outIndex..], &[2]u16{ firstCodeUnit, secondCodeUnit })) |byteCount| { outIndex += byteCount; inIndex += 12; } else |_| { |
