OSDN Git Service

2004-08-20 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Aug 2004 10:32:34 +0000 (10:32 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Aug 2004 10:32:34 +0000 (10:32 +0000)
* include/c_std/cmath.tcc (__cmath_power): Suppress assignment
used as truth value warning.

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

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

index 6f30769..6dca88c 100644 (file)
@@ -1,5 +1,10 @@
 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
        baseline.
 
index d771467..c6df0a0 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)