From 08e40efe118f6245efde0ec4c98ad5e2dde7db14 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 10 May 2022 20:24:07 -0700 Subject: [napi] Fix string bug --- src/string_immutable.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string_immutable.zig') 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; } -- cgit v1.2.3