From 584e6dd1c2240fd1767b7a7280e4695965f71237 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Thu, 12 Oct 2023 19:38:33 -0700 Subject: Upgrade zig to 0.12.0-dev.888+130227491 (#6471) * update build.zig * save * works? * better workaround * fix install * Fix compiler crash --- src/js_ast.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js_ast.zig') 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] -- cgit v1.2.3