aboutsummaryrefslogtreecommitdiff
path: root/tests/float-to-uint32.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-18 12:34:25 -0800
committerMichael Forney <mforney@mforney.org>2019-02-18 12:48:38 -0800
commit9f964b728151066dd37dd80269ed23ea4b4cdeab (patch)
tree4dcde4880c175d6b2d1ef4903eaf6b746cda8836 /tests/float-to-uint32.c
parent27e77f6ca6872c8d332c2e153773ca226d69fb64 (diff)
Fix compatible check for basic types
This check was only supposed to return true for enum types and their corresponding integer type. However, it had the side effect of making 'int' compatible with 'unsigned'. To fix this, introduce a new basic type kind for enums with the same rank as 'int', that is only compatible with itself and the 'int' type with the matching sign. Thanks to Andrew Chambers for the bug report.
Diffstat (limited to 'tests/float-to-uint32.c')
0 files changed, 0 insertions, 0 deletions