cmath.tcc (__cmath_power): Suppress assignment used as truth value warning.
authorPaolo Carlini <pcarlini@suse.de>
Fri, 20 Aug 2004 10:32:34 +0000 (10:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 20 Aug 2004 10:32:34 +0000 (10:32 +0000)
2004-08-20  Paolo Carlini  <pcarlini@suse.de>

* include/c_std/cmath.tcc (__cmath_power): Suppress assignment
used as truth value warning.

From-SVN: r86310

libstdc++-v3/ChangeLog
libstdc++-v3/include/c_std/cmath.tcc

index 6f30769c6a54a9098d2459a5804c58818ec59438..6dca88cca52d48cd47651c7cfe4ce89fe4180150 100644 (file)
@@ -1,3 +1,8 @@
+2004-08-20  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/c_std/cmath.tcc (__cmath_power): Suppress assignment
+       used as truth value warning.
+
 2004-08-20  Paolo Carlini  <pcarlini@suse.de>
 
        * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit
index d771467ec61b7a8b2caf753fac93c72b2a2f21b6..c6df0a0ed865bc6e94249ed4e09d53e0c035bcc7 100644 (file)
@@ -40,7 +40,7 @@ namespace std
     {
       _Tp __y = __n % 2 ? __x : 1;
 
-      while (__n >>= 1)
+      while ((__n >>= 1))
         {
           __x = __x * __x;
           if (__n % 2)