From db570a48c14b480378b40893f306b82277efe90e Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Mon, 30 Nov 2009 18:08:33 +0000 Subject: [PATCH] fix opensolaris compilation SVN revision: 44057 --- legacy/embryo/src/bin/embryo_cc_sc2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/embryo/src/bin/embryo_cc_sc2.c b/legacy/embryo/src/bin/embryo_cc_sc2.c index 269b31ee8e..be3bc5d544 100644 --- a/legacy/embryo/src/bin/embryo_cc_sc2.c +++ b/legacy/embryo/src/bin/embryo_cc_sc2.c @@ -640,8 +640,9 @@ ftoi(cell * val, char *curptr) } else if (rational_digits == 0) { + float f = (float) fnum; /* floating point */ - *val = EMBRYO_FLOAT_TO_CELL((float) fnum); + *val = EMBRYO_FLOAT_TO_CELL(f); #if !defined NDEBUG /* I assume that the C/C++ compiler stores "float" values in IEEE 754 * format (as mandated in the ANSI standard). Test this assumption anyway.