From 0243398b19f5a24529dbf23b6a6134be5b7e3984 Mon Sep 17 00:00:00 2001 From: kalsprite Date: Sat, 15 Aug 2026 21:52:07 -0700 Subject: [PATCH] swizzle arg guard --- src/check_builtin.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; }