diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index 457252354..5d9c6ac08 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -3500,10 +3500,8 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As arg_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) { + // No upper bound on the index count + if (arg_count < 2) { error(call, "Not enough 'swizzle' indices, %td < 2", arg_count); return false; }