complext.cc (pow): Don't expect floating point promotion in presence of template...
authorGabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
Fri, 17 Sep 1999 09:08:26 +0000 (11:08 +0200)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 17 Sep 1999 09:08:26 +0000 (09:08 +0000)
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

libstdc++/ChangeLog
libstdc++/std/complext.cc

index 25e5418a77c5560bb91eeb609b2b5c099cb29c48..731c2a59c7388f7205a16c242ed59dea332dd404 100644 (file)
@@ -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*.
index d50bf0871f6111bb2d67b5df39ea1260686fba8d..60227f213299e6e3759ab7283153af9852d95d99 100644 (file)
@@ -236,7 +236,7 @@ pow (const complex<FLOAT>& xin, int y)
   if (y < 0)
     {
       y = -y;
-      x = 1/x;
+      x = FLOAT(1)/x;
     }
   for (;;)
     {