diff options
author | Klaus Espenlaub <kespenla@student.informatik.uni-ulm.de> | 1997-09-03 15:54:14 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-09-03 09:54:14 -0600 |
commit | 3d015f466d6f8e723bc9d94ce5f9be1910db9e60 (patch) | |
tree | 041694736ac27c9548eed0d5da973cc1e44a87e9 /gcc | |
parent | 8aa4e786fbd9ccb43cc78708229d7ceb299a9589 (diff) | |
download | gcc-3d015f466d6f8e723bc9d94ce5f9be1910db9e60.zip gcc-3d015f466d6f8e723bc9d94ce5f9be1910db9e60.tar.gz gcc-3d015f466d6f8e723bc9d94ce5f9be1910db9e60.tar.bz2 |
method.c (build_overloaded_value): Replace direct call to the floating point emulator with REAL_VALUE_TO_DECIMAL macro.
* method.c (build_overloaded_value): Replace direct call
to the floating point emulator with REAL_VALUE_TO_DECIMAL macro.
From-SVN: r15059
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/method.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 66418eb..b814f98 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 45108ea..0a67b80 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -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"); |