aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-05 12:33:02 +0100
committergingerBill <bill@gingerbill.org>2024-08-05 12:33:02 +0100
commitfd06be2243db3fa193702f881947eaa5f2ebf24b (patch)
tree1e1eb977f9949aedf056b8fc1ecc7b5ce938b254 /src/check_builtin.cpp
parenta06cb8ba46e8a116c8968565eef055fc56ec298e (diff)
Allow `swizzle` to take more arguments than the original array length
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index b6b1f9874..b96337326 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -2460,7 +2460,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
arg_count++;
}
- if (arg_count > max_count) {
+ if (false && arg_count > max_count) {
error(call, "Too many 'swizzle' indices, %td > %td", arg_count, max_count);
return false;
} else if (arg_count < 2) {