aboutsummaryrefslogtreecommitdiff
path: root/src/BuiltinFn.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-21 14:33:02 +0200
committerVeikka Tuominen <git@vexu.eu>2022-12-27 15:13:14 +0200
commit54160e7f6aecb4628df633ceaef4c6d956429a3d (patch)
tree8b523c4dad676be508f680fa8840fa3430a14191 /src/BuiltinFn.zig
parentaf9a9a13747b1e7007e29ff4f76e700f5bd7f7cf (diff)
downloadzig-54160e7f6aecb4628df633ceaef4c6d956429a3d.tar.gz
zig-54160e7f6aecb4628df633ceaef4c6d956429a3d.zip
Sema: make overflow arithmetic builtins return tuples
Diffstat (limited to 'src/BuiltinFn.zig')
-rw-r--r--src/BuiltinFn.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/BuiltinFn.zig b/src/BuiltinFn.zig
index 7e23be2a3a..b71d96c3dd 100644
--- a/src/BuiltinFn.zig
+++ b/src/BuiltinFn.zig
@@ -154,7 +154,7 @@ pub const list = list: {
"@addWithOverflow",
.{
.tag = .add_with_overflow,
- .param_count = 4,
+ .param_count = 2,
},
},
.{
@@ -636,7 +636,7 @@ pub const list = list: {
"@mulWithOverflow",
.{
.tag = .mul_with_overflow,
- .param_count = 4,
+ .param_count = 2,
},
},
.{
@@ -741,7 +741,7 @@ pub const list = list: {
"@shlWithOverflow",
.{
.tag = .shl_with_overflow,
- .param_count = 4,
+ .param_count = 2,
},
},
.{
@@ -889,7 +889,7 @@ pub const list = list: {
"@subWithOverflow",
.{
.tag = .sub_with_overflow,
- .param_count = 4,
+ .param_count = 2,
},
},
.{