mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 05:20:34 +00:00
update std/json.zig to latest language changes
fixes regression from 54231e832bae780c5012fc5cd30932447f1e1d47
This commit is contained in:
parent
fb2f0cc497
commit
e0c7d12043
@ -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 |_| {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user