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
This commit is contained in:
Gabriel Dos Reis 1999-09-17 11:08:26 +02:00 committed by Gabriel Dos Reis
parent 745d757c07
commit fcc32134a0
2 changed files with 7 additions and 1 deletions

View 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*.

View 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 (;;)
{