From 90757fa24f8e94bd537a6c351759090cab9760b0 Mon Sep 17 00:00:00 2001 From: Evan Haas Date: Wed, 6 Mar 2024 07:22:00 -0800 Subject: [PATCH] Builtins eval: cast comptime int to i64 --- src/aro/Builtins/eval.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aro/Builtins/eval.zig b/src/aro/Builtins/eval.zig index eca89f43..fd1a9865 100644 --- a/src/aro/Builtins/eval.zig +++ b/src/aro/Builtins/eval.zig @@ -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: {