From ef4b20293bb11849a215c00ce22ffaedaae01a2d Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Mon, 29 Apr 2024 08:02:44 -0700 Subject: [PATCH] Value: fix 32-bit compilation --- src/aro/Value.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aro/Value.zig b/src/aro/Value.zig index 58712ede..34025fc1 100644 --- a/src/aro/Value.zig +++ b/src/aro/Value.zig @@ -893,7 +893,7 @@ pub fn compare(lhs: Value, op: std.math.CompareOperator, rhs: Value, comp: *cons fn twosCompIntLimit(limit: std.math.big.int.TwosCompIntLimit, ty: Type, comp: *Compilation) !Value { const signedness = ty.signedness(comp); if (limit == .min and signedness == .unsigned) return Value.zero; - const mag_bits = ty.bitSizeof(comp).?; + const mag_bits: usize = @intCast(ty.bitSizeof(comp).?); switch (mag_bits) { inline 8, 16, 32, 64 => |bits| { if (limit == .min) return Value.int(@as(i64, std.math.minInt(std.meta.Int(.signed, bits))), comp);