Skip to content

Commit

Permalink
Builtins eval: cast comptime int to i64
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas committed Mar 6, 2024
1 parent 99a8ed1 commit d66d6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aro/Builtins/eval.zig
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn eval(tag: Builtin.Tag, p: *Parser, args: []const NodeIndex) !Value {
.unknown => {},
.finite => return Value.zero,
.positive => return Value.one,
.negative => return Value.int(-1, p.comp),
.negative => return Value.int(@as(i64, -1), p.comp),
}
},
Builtin.tagFromName("__builtin_isnan").? => blk: {
Expand Down

0 comments on commit d66d6f9

Please sign in to comment.