diff options
-rw-r--r-- | libstdc++/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++/std/complext.cc | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index 25e5418a77c..731c2a59c73 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 d50bf0871f6..60227f21329 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 (;;) { |