aboutsummaryrefslogtreecommitdiff
path: root/libstdc++
diff options
context:
space:
mode:
authorGabriel Dos Reis <dosreis@cmla.ens-cachan.fr>1999-09-17 11:08:26 +0200
committerGabriel Dos Reis <gdr@gcc.gnu.org>1999-09-17 09:08:26 +0000
commitfcc32134a04e3022fce5c026f3ef95184f21187f (patch)
treed1480a091f8e1a859dc46bf6cbd44201b924ba9d /libstdc++
parent745d757c073a6624c7324fa20ff6ee1f0c3ef648 (diff)
downloadgcc-fcc32134a04e3022fce5c026f3ef95184f21187f.zip
gcc-fcc32134a04e3022fce5c026f3ef95184f21187f.tar.gz
gcc-fcc32134a04e3022fce5c026f3ef95184f21187f.tar.bz2
complext.cc (pow): Don't expect floating point promotion in presence of template argument deduction.
1999-09-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr> * std/complext.cc (pow): Don't expect floating point promotion in presence of template argument deduction. There is no such thing. From-SVN: r29474
Diffstat (limited to 'libstdc++')
-rw-r--r--libstdc++/ChangeLog6
-rw-r--r--libstdc++/std/complext.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog
index 25e5418..731c2a5 100644
--- a/libstdc++/ChangeLog
+++ b/libstdc++/ChangeLog
@@ -1,3 +1,9 @@
+1999-09-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
+
+ * std/complext.cc (pow): Don't expect floating point promotion
+ in presence of template argument deduction. There is no such
+ thing.
+
1999-09-01 Andreas Schwab <schwab@suse.de>
* configure.in: Move *-*-gnu* pattern below *-*-linux*.
diff --git a/libstdc++/std/complext.cc b/libstdc++/std/complext.cc
index d50bf08..60227f2 100644
--- a/libstdc++/std/complext.cc
+++ b/libstdc++/std/complext.cc
@@ -236,7 +236,7 @@ pow (const complex<FLOAT>& xin, int y)
if (y < 0)
{
y = -y;
- x = 1/x;
+ x = FLOAT(1)/x;
}
for (;;)
{