mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #1028
This commit is contained in:
+3
-2
@@ -5511,7 +5511,7 @@ CallArgumentError check_polymorphic_record_type(CheckerContext *c, Operand *oper
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (ordered_operands.count >= 0) {
|
while (ordered_operands.count > 0) {
|
||||||
if (ordered_operands[ordered_operands.count-1].expr != nullptr) {
|
if (ordered_operands[ordered_operands.count-1].expr != nullptr) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -5560,8 +5560,9 @@ CallArgumentError check_polymorphic_record_type(CheckerContext *c, Operand *oper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isize oo_count = gb_min(param_count, ordered_operands.count);
|
||||||
i64 score = 0;
|
i64 score = 0;
|
||||||
for (isize i = 0; i < param_count; i++) {
|
for (isize i = 0; i < oo_count; i++) {
|
||||||
Entity *e = tuple->variables[i];
|
Entity *e = tuple->variables[i];
|
||||||
Operand *o = &ordered_operands[i];
|
Operand *o = &ordered_operands[i];
|
||||||
if (o->mode == Addressing_Invalid) {
|
if (o->mode == Addressing_Invalid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user