mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +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]) {
|
if (fields_set[*index]) {
|
||||||
error(field->field, "Previously assigned field: '%.*s'", LIT(name));
|
error(field->field, "Previously assigned field: '%.*s'", LIT(name));
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
fields_set[*index] = style;
|
fields_set[*index] = style;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user