cmath.tcc (__cmath_power): Suppress assignment used as truth value warning.
[gcc.git] / libstdc++-v3 / include / c_std / cmath.tcc
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)