aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vaughan Rouesnel <vrouesnel@gmail.com> 2022-11-12 00:55:52 +0100
committerGravatar Vaughan Rouesnel <vrouesnel@gmail.com> 2022-11-12 00:55:52 +0100
commit5c8b61f843c3cefd59409a7907b43ece0804a480 (patch)
tree9bb8d1af3d1e8ecefa6b179dd689e3d12b382c86
parent8ea81203ed20692015570a2d8d6bcecbcf712560 (diff)
downloadbun-5c8b61f843c3cefd59409a7907b43ece0804a480.tar.gz
bun-5c8b61f843c3cefd59409a7907b43ece0804a480.tar.zst
bun-5c8b61f843c3cefd59409a7907b43ece0804a480.zip
Fix: @ctz - expected 1 argument, found 2
-rw-r--r--src/js_lexer.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_lexer.zig b/src/js_lexer.zig
index 3a5cd3999..056e777db 100644
--- a/src/js_lexer.zig
+++ b/src/js_lexer.zig
@@ -3012,7 +3012,7 @@ fn indexOfInterestingCharacterInStringLiteral(text_: []const u8, quote: u8) ?usi
if (@reduce(.Max, any_significant) > 0) {
const bitmask = @ptrCast(*const u16, &any_significant).*;
- const first = @ctz(u16, bitmask);
+ const first = @ctz(@as(u16, bitmask));
std.debug.assert(first < strings.ascii_vector_size);
return first + (@ptrToInt(text.ptr) - @ptrToInt(text_.ptr));
}