From f5b9be08c14898c6b7dfacf127ae39573e81cde7 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 15 Dec 2014 15:04:12 +0300 Subject: [PATCH] math: use correct type This was part of an earlier commit... :( Signed-off-by: Dan Carpenter --- smatch_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_math.c b/smatch_math.c index e3eaf8f9..7a92749c 100644 --- a/smatch_math.c +++ b/smatch_math.c @@ -784,6 +784,7 @@ static struct range_list *_get_rl(struct expression *expr, int implied) struct symbol *type; sval_t sval; + type = get_type(expr); expr = strip_parens(expr); if (!expr) return NULL; @@ -799,7 +800,6 @@ static struct range_list *_get_rl(struct expression *expr, int implied) expr = strip_expr(expr); if (!expr) return NULL; - type = get_type(expr); switch (expr->type) { case EXPR_VALUE: -- 2.11.4.GIT