diff options
| author | Cedric Hutchings <ced@misguided.enterprises> | 2022-05-23 08:14:05 -0400 |
|---|---|---|
| committer | Cedric Hutchings <ced@misguided.enterprises> | 2022-05-23 08:14:05 -0400 |
| commit | 3d9d85121d207b41e24214c4acc52fc50271127f (patch) | |
| tree | 56bbb9ddc599805884eb0707632a681038c4d1ff /src/check_expr.cpp | |
| parent | a31d23a32a04554af964850efa8d44c5467c176c (diff) | |
Clear up Mismatched BE types error message
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 2 |
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); |