Fix and extend *FCAST test in tcctest.c
commit02d2ca8ac77e8deaa494199f79624176df6a2b6c
authorThomas Preud'homme <robotux@celest.fr>
Wed, 5 Feb 2014 07:26:46 +0000 (5 15:26 +0800)
committerThomas Preud'homme <robotux@celest.fr>
Wed, 5 Feb 2014 07:26:46 +0000 (5 15:26 +0800)
tree26a7da43dc130845b2fadfbe43a3a609b028b9af
parent17314a1fb316eb712ae0c539ccea64fe1aeb5c93
Fix and extend *FCAST test in tcctest.c

Result of float to unsigned integer conversion is undefined if float is
negative. This commit take the absolute value of the float before doing
the conversion to unsigned integer and add more float to integer
conversion test.
tests/tcctest.c