fix opensolaris compilation

SVN revision: 44057
This commit is contained in:
Vincent Torri 2009-11-30 18:08:33 +00:00
parent 67a1af400c
commit db570a48c1
1 changed files with 2 additions and 1 deletions

View File

@ -640,8 +640,9 @@ ftoi(cell * val, char *curptr)
} }
else if (rational_digits == 0) else if (rational_digits == 0)
{ {
float f = (float) fnum;
/* floating point */ /* floating point */
*val = EMBRYO_FLOAT_TO_CELL((float) fnum); *val = EMBRYO_FLOAT_TO_CELL(f);
#if !defined NDEBUG #if !defined NDEBUG
/* I assume that the C/C++ compiler stores "float" values in IEEE 754 /* I assume that the C/C++ compiler stores "float" values in IEEE 754
* format (as mandated in the ANSI standard). Test this assumption anyway. * format (as mandated in the ANSI standard). Test this assumption anyway.