aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-05-25 11:44:05 +0100
committergingerBill <bill@gingerbill.org>2022-05-25 11:44:05 +0100
commit39393cca92e8561fc65b7304626c84fb8e0ca146 (patch)
tree4c795ad7525537019e354c54552bd17fd7338671 /src/check_expr.cpp
parentacadbe050cd4337e3eb0f8febd31df94f5270bd2 (diff)
parent233b32fd3ea4bb50ad1cc41e819bcdca5c3bf4d4 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 2bb79e21c..7b269e048 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -3211,7 +3211,7 @@ void check_binary_expr(CheckerContext *c, Operand *x, Ast *node, Type *type_hint
y->type != t_invalid) {
gbString xt = type_to_string(x->type);
gbString yt = type_to_string(y->type);
- gbString expr_str = expr_to_string(x->expr);
+ gbString expr_str = expr_to_string(node);
error(op, "Mismatched types in binary expression '%s' : '%s' vs '%s'", expr_str, xt, yt);
gb_string_free(expr_str);
gb_string_free(yt);