Fix type promotion wrapping some non-trivial constant expressions
This was previously an integral type instead of a floating point type:
This commit is contained in:
parent
90ba174fce
commit
9e2a12416c
13 changed files with 17 additions and 0 deletions
|
|
@ -6338,6 +6338,7 @@ valexpr : exprnum { $$ = $1; }
|
|||
break;
|
||||
}
|
||||
}
|
||||
$$.type = promote($2.type, $4.type);
|
||||
}
|
||||
| LPAREN expr pointer RPAREN expr %prec CAST {
|
||||
$$ = $5;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue