diff options
author | 2023-10-14 12:58:30 -0700 | |
---|---|---|
committer | 2023-10-14 12:58:30 -0700 | |
commit | f9add8b6bea4df3cdbd56a21f17e4cab1a854e4e (patch) | |
tree | 8e5306104d81c67b771181337bba02cd9ec39453 /src/js_ast.zig | |
parent | 81a1a58d66c598ea35c42453d0ba4c6341a940fc (diff) | |
parent | 9b5e66453b0879ed77b71dcdbe50e4efa184261e (diff) | |
download | bun-f9add8b6bea4df3cdbd56a21f17e4cab1a854e4e.tar.gz bun-f9add8b6bea4df3cdbd56a21f17e4cab1a854e4e.tar.zst bun-f9add8b6bea4df3cdbd56a21f17e4cab1a854e4e.zip |
Merge branch 'main' into sdlsdl
Diffstat (limited to 'src/js_ast.zig')
-rw-r--r-- | src/js_ast.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index 46c204e69..3b17240c0 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -1714,7 +1714,7 @@ pub const E = struct { if (comptime !Environment.isWasm) { if (value == @trunc(value) and (value < std.math.maxInt(i32) and value > std.math.minInt(i32))) { const int_value = @as(i64, @intFromFloat(value)); - const abs = @as(u64, @intCast(std.math.absInt(int_value) catch return null)); + const abs = @as(u64, @intCast(@abs(int_value))); if (abs < double_digit.len) { return if (int_value < 0) neg_double_digit[abs] |