[util] Fix inferred binary operator type checking

The problem is that I needed to support dynamic types on operators (for
bit-field enums), had things working, but a bad edit messed things up
and I had to rebuild that bit of code. Missed one bit :P
This commit is contained in:
Bill Currie 2020-12-21 14:47:15 +09:00
parent f3682638d4
commit 4649294a27

View file

@ -179,7 +179,7 @@ binary_expr (int op, const exprval_t *a, const exprval_t *b,
if (!otype) {
otype = a->type;
}
if (binop->op == op && binop->other == b->type) {
if (binop->op == op && otype == b->type) {
break;
}
}