Message ID | 20190925220340.5128-4-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | fix sign extension in casting enums | expand |
diff --git a/parse.c b/parse.c index 005eb1608..b01c876e7 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 7f17debac..d1aee9419 100644 --- a/validation/enum-sign-extend.c +++ b/validation/enum-sign-extend.c @@ -8,5 +8,4 @@ _Static_assert(b == -1L, "value"); /* * check-name: enum-sign-extend - * check-known-to-fail */