swizzle arg guard

This commit is contained in:
kalsprite
2026-08-15 21:52:07 -07:00
parent 4ceba928c7
commit 0243398b19

View File

@@ -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;
}