aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-24 11:40:02 +0100
committergingerBill <bill@gingerbill.org>2024-08-24 11:40:02 +0100
commit4458ca4585666b1e2bc9438b6a2402a1ad93bbc2 (patch)
treef5494e70bc8360e6f3737f94c89b6f8a49f8bb17 /src/check_expr.cpp
parentd4102817665e044b092f3c136802373fd830eb4d (diff)
Fix #4126
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 9cdba2710..24cc8868a 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3782,10 +3782,10 @@ gb_internal void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Typ
// NOTE(bill): Allow comparisons between types
if (is_ise_expr(be->left)) {
// 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);
} 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);
}
bool xt = x->mode == Addressing_Type;