mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #4126
This commit is contained in:
+2
-2
@@ -3782,10 +3782,10 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ
|
|||||||
// NOTE(bill): Allow comparisons between types
|
// NOTE(bill): Allow comparisons between types
|
||||||
if (is_ise_expr(be->left)) {
|
if (is_ise_expr(be->left)) {
|
||||||
// Evalute the right before the left for an '.X' expression
|
// Evalute the right before the left for an '.X' expression
|
||||||
check_expr_or_type(c, y, be->right, type_hint);
|
check_expr_or_type(c, y, be->right, nullptr /* ignore type hint */);
|
||||||
check_expr_or_type(c, x, be->left, y->type);
|
check_expr_or_type(c, x, be->left, y->type);
|
||||||
} else {
|
} else {
|
||||||
check_expr_or_type(c, x, be->left, type_hint);
|
check_expr_or_type(c, x, be->left, nullptr /* ignore type hint */);
|
||||||
check_expr_or_type(c, y, be->right, x->type);
|
check_expr_or_type(c, y, be->right, x->type);
|
||||||
}
|
}
|
||||||
bool xt = x->mode == Addressing_Type;
|
bool xt = x->mode == Addressing_Type;
|
||||||
|
|||||||
Reference in New Issue
Block a user