diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-01 12:51:38 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-01 13:35:22 -0400 |
| commit | 705ae3f34380f33d1a7e391400ef692becd38c14 (patch) | |
| tree | 3d4744a66527caad09ce75efcdfcf093647500cb | |
| parent | 405bf7cd5549edd1f718fce2b53f845dde6fe690 (diff) | |
Fix `quaternion` construction causing compiler crash
Previously, a construction of `quaternion(real=0, real=1, real=2,
real=3)` could crash the compiler.
| -rw-r--r-- | src/check_builtin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index f384cb7e1..fe3106162 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2917,6 +2917,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As if (fields_set[*index]) { error(field->field, "Previously assigned field: '%.*s'", LIT(name)); + return false; } fields_set[*index] = style; |