diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-05 12:33:02 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-05 12:33:02 +0100 |
| commit | fd06be2243db3fa193702f881947eaa5f2ebf24b (patch) | |
| tree | 1e1eb977f9949aedf056b8fc1ecc7b5ce938b254 /src/check_builtin.cpp | |
| parent | a06cb8ba46e8a116c8968565eef055fc56ec298e (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.cpp | 2 |
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) { |