Skip to content

Commit

Permalink
Update src/aro/Builtins/eval.zig
Browse files Browse the repository at this point in the history
Co-authored-by: Veikka Tuominen <[email protected]>
  • Loading branch information
ehaas and Vexu committed Mar 10, 2024
1 parent dc955f1 commit 5d844c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/aro/Builtins/eval.zig
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ pub fn eval(tag: Builtin.Tag, p: *Parser, args: []const NodeIndex) !Value {
.unknown => {},
.finite => return Value.zero,
.positive => return Value.one,
.negative => {
var negative_one: Value = undefined;
_ = try negative_one.sub(Value.zero, Value.one, .{ .specifier = .int }, p.comp);
return negative_one;
},
.negative => return Value.int(-1, p.comp),
}
},
Builtin.tagFromName("__builtin_isnan").? => blk: {
Expand Down

0 comments on commit 5d844c2

Please sign in to comment.