fix opensolaris compilation
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 30 Nov 2009 18:08:33 +0000 (18:08 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 30 Nov 2009 18:08:33 +0000 (18:08 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/embryo@44057 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/embryo_cc_sc2.c

index 269b31e..be3bc5d 100644 (file)
@@ -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.