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:
William S Fulton 2017-09-18 07:06:27 +01:00
commit 9e2a12416c
13 changed files with 17 additions and 0 deletions

View file

@ -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)