X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=format_check.c;fp=format_check.c;h=6fec9b7c8843c4806f1024b4d35dd1a8951b2713;hb=c3d6ac6474ad05adfeaed04227e5956fb492688a;hp=f1134e2ace924fa74e78350917568289c96a9729;hpb=3def71f59901789159be20bfdc806fb0fb1b6375;p=cparser diff --git a/format_check.c b/format_check.c index f1134e2..6fec9b7 100644 --- a/format_check.c +++ b/format_check.c @@ -108,7 +108,7 @@ static int internal_check_printf_format(const expression_t *fmt_expr, const call_argument_t *arg, const format_spec_t *spec) { - while (fmt_expr->kind == EXPR_UNARY_CAST_IMPLICIT) { + while (fmt_expr->kind == EXPR_UNARY_CAST) { fmt_expr = fmt_expr->unary.value; } @@ -521,7 +521,7 @@ too_few_args: } } else if (get_unqualified_type(arg_skip) == expected_type_skip) { goto next_arg; - } else if (arg->expression->kind == EXPR_UNARY_CAST_IMPLICIT) { + } else if (arg->expression->kind == EXPR_UNARY_CAST) { expression_t const *const expr = arg->expression->unary.value; type_t *const unprom_type = skip_typeref(expr->base.type); if (get_unqualified_type(unprom_type) == expected_type_skip) { @@ -595,7 +595,7 @@ static void check_scanf_format(const call_argument_t *arg, } const expression_t *fmt_expr = arg->expression; - if (fmt_expr->kind == EXPR_UNARY_CAST_IMPLICIT) { + if (fmt_expr->kind == EXPR_UNARY_CAST) { fmt_expr = fmt_expr->unary.value; }