diff options
author | 2022-05-10 20:24:07 -0700 | |
---|---|---|
committer | 2022-05-10 20:24:07 -0700 | |
commit | 08e40efe118f6245efde0ec4c98ad5e2dde7db14 (patch) | |
tree | 06384cac8da728eb0327c0a18c1b53045e669cb8 /src/string_immutable.zig | |
parent | 01a0aee1e8622b130b1742ab278dcfea312ae24d (diff) | |
download | bun-08e40efe118f6245efde0ec4c98ad5e2dde7db14.tar.gz bun-08e40efe118f6245efde0ec4c98ad5e2dde7db14.tar.zst bun-08e40efe118f6245efde0ec4c98ad5e2dde7db14.zip |
[napi] Fix string bug
Diffstat (limited to '')
-rw-r--r-- | src/string_immutable.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig index 1eb88675f..ac41dcc42 100644 --- a/src/string_immutable.zig +++ b/src/string_immutable.zig @@ -1197,7 +1197,7 @@ pub fn copyLatin1IntoUTF16(comptime Buffer: type, buf_: Buffer, comptime Type: t pub fn elementLengthLatin1IntoUTF16(comptime Type: type, latin1_: Type) usize { // latin1 is always at most 1 UTF-16 code unit long - if (comptime std.meta.Child(u16) == Type) { + if (comptime std.meta.Child([]const u16) == Type) { return latin1_.len; } |