Skip to content

Commit

Permalink
Value: fix 32-bit compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Apr 29, 2024
1 parent 1c65140 commit ef4b202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aro/Value.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ef4b202

Please sign in to comment.