fix expansion of integers to floats
commit5c9411a5c0482b0ceb70861114df4c229e1298ca
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Fri, 17 Mar 2017 08:51:37 +0000 (17 09:51 +0100)
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 27 Mar 2017 14:27:46 +0000 (27 16:27 +0200)
treeda9acd892e580b1eded9d90e2789fec1a276dbc2
parente6f52d5bb67d6941b985a45b08bf87c305e3ba5b
fix expansion of integers to floats

The test wasn't using is_float_type() and thus missed
SYM_NODE->SUM_BASETYPE::fp_type.

Use is_float_type() now.

Reported-by: Dibyendu Majumdar <mobile@majumdar.org.uk>
CC: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
expand.c
validation/cast-constant-to-float.c [new file with mode: 0644]
validation/cast-constants.c [new file with mode: 0644]