--- evaluate.c | 17 +---------------- 1 files changed, 1 insertions(+), 16 deletions(-) diff --git a/evaluate.c b/evaluate.c index b3a79e7..1d33c58 100644 --- a/evaluate.c +++ b/evaluate.c @@ -999,26 +999,11 @@ static struct symbol *evaluate_compare(s goto OK; } - ctype = compatible_integer_binop(&expr->left, &expr->right); + ctype = evaluate_arith(expr, 1); if (ctype) { if (ctype->ctype.modifiers & MOD_UNSIGNED) expr->op = modify_for_unsigned(expr->op); - goto OK; - } - - ctype = compatible_float_binop(&expr->left, &expr->right); - if (ctype) - goto OK; - - ctype = compatible_restricted_binop(expr->op, &expr->left, &expr->right); - if (ctype) { - if (ctype->ctype.modifiers & MOD_UNSIGNED) - expr->op = modify_for_unsigned(expr->op); - goto OK; } - - bad_expr_type(expr); - OK: expr->ctype = &bool_ctype; return &bool_ctype; -- 1.4.2.GIT - To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html