mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
Fix quaternion construction causing compiler crash
Previously, a construction of `quaternion(real=0, real=1, real=2, real=3)` could crash the compiler.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user