method.c (build_overloaded_value): Replace direct call to the floating point emulator...
authorKlaus Espenlaub <kespenla@student.informatik.uni-ulm.de>
Wed, 3 Sep 1997 15:54:14 +0000 (15:54 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 3 Sep 1997 15:54:14 +0000 (09:54 -0600)
        * method.c (build_overloaded_value): Replace direct call
        to the floating point emulator with REAL_VALUE_TO_DECIMAL macro.

From-SVN: r15059

gcc/cp/ChangeLog
gcc/cp/method.c

index 66418eb7983792c31372f6c1dc58f77169752983..b814f98cfc7f291c6bb647c424c21f222c05c285 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep  3 09:55:09 1997  Klaus Espenlaub  (kespenla@student.informatik.uni-ulm.de)
+
+       * method.c (build_overloaded_value): Replace direct call
+       to the floating point emulator with REAL_VALUE_TO_DECIMAL macro.
+
 Wed Sep  3 00:02:53 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * typeck.c (convert_arguments): Don't arbitrarily choose the first
index 45108ea9d0c2272b72d53e5f064418e8402bef4c..0a67b802f7bff4538e7d8488f1c3679893127ef4 100644 (file)
@@ -520,7 +520,7 @@ build_overload_value (type, value, in_template)
              }
            else
              {
-               ereal_to_decimal (val, bufp);
+               REAL_VALUE_TO_DECIMAL (val, "%.20e", bufp);
                bufp = (char *) index (bufp, 'e');
                if (!bufp)
                  strcat (digit_buffer, "e0");