Fix condition for pointer case in checking cond-expression.
@@ -8680,7 +8680,7 @@ static void check (c2m_ctx_t c2m_ctx, node_t r, node_t context) {
} else if ((t2->mode == TM_PTR && null_const_p (e3, t3))
|| (t3->mode == TM_PTR && null_const_p (e2, t2))) {
e->type = null_const_p (e3, t2) ? t3 : t2;
- } else if (t2->mode != TM_PTR && t3->mode != TM_PTR) {
+ } else if (t2->mode != TM_PTR || t3->mode != TM_PTR) {
error (c2m_ctx, POS (r), "incompatible types in true and false parts of cond-expression");
break;
} else if (compatible_types_p (t2, t3, TRUE)) {
