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
|
|
@ -86,6 +86,7 @@
|
|||
#define EXPR_LAND 0xFF && 1
|
||||
#define EXPR_LOR 0xFF || 1
|
||||
#define EXPR_CONDITIONAL true ? 2 : 2.2
|
||||
#define EXPR_MIXED1 (0x80 + 11.1) - 1
|
||||
|
||||
#define EXPR_WCHAR_MAX (0x7fffffff + L'\0')
|
||||
#define EXPR_WCHAR_MIN (-EXPR_WCHAR_MAX - 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue