aboutsummaryrefslogtreecommitdiff
path: root/libstdc++/std/complext.cc
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++/std/complext.cc
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++/std/complext.cc')
-rw-r--r--libstdc++/std/complext.cc2
1 files changed, 1 insertions, 1 deletions
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 (;;)
{