aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--parse.c2
-rw-r--r--validation/enum-sign-extend.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 005eb160..b01c876e 100644
--- a/parse.c
+++ b/parse.c
@@ -897,8 +897,8 @@ static void cast_enum_list(struct symbol_list *list, struct symbol *base_type)
expr->ctype = &int_ctype;
continue;
}
- expr->ctype = base_type;
cast_value(expr, base_type, expr, ctype);
+ expr->ctype = base_type;
} END_FOR_EACH_PTR(sym);
}
diff --git a/validation/enum-sign-extend.c b/validation/enum-sign-extend.c
index 9dfbc5eb..d852c934 100644
--- a/validation/enum-sign-extend.c
+++ b/validation/enum-sign-extend.c
@@ -9,5 +9,4 @@ _Static_assert(b == -1L, "value");
/*
* check-name: enum-sign-extend
* check-command: sparse -m64 $file
- * check-known-to-fail
*/