OSDN Git Service

1999-09-17 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 09:08:26 +0000 (09:08 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 09:08:26 +0000 (09:08 +0000)
        * std/complext.cc (pow): Don't expect floating point promotion
        in presence of template argument deduction.  There is no such
        thing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29474 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 25e5418..731c2a5 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 d50bf08..60227f2 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 (;;)
     {