zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4cfea2fbd51b5ecf7405c98432d14a8ace12247d (tree)
parent d10ec6e70dbcf49ba14be549069271e564fec76b
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Wed, 21 Apr 2021 19:10:54 -0700

AstGen: fix `@floatCast` having wrong arity

It's not time for #5909 yet.

Diffstat:
Msrc/BuiltinFn.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/BuiltinFn.zig b/src/BuiltinFn.zig @@ -414,14 +414,14 @@ pub const list = list: { "@floatCast", .{ .tag = .float_cast, - .param_count = 1, + .param_count = 2, }, }, .{ "@floatToInt", .{ .tag = .float_to_int, - .param_count = 1, + .param_count = 2, }, }, .{