From c0ca279584af777be53c427c287a5d2972447920 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 20 Aug 2004 10:32:34 +0000 Subject: [PATCH] cmath.tcc (__cmath_power): Suppress assignment used as truth value warning. 2004-08-20 Paolo Carlini * include/c_std/cmath.tcc (__cmath_power): Suppress assignment used as truth value warning. From-SVN: r86310 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/c_std/cmath.tcc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 6f30769c6a5..6dca88cca52 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2004-08-20 Paolo Carlini + + * include/c_std/cmath.tcc (__cmath_power): Suppress assignment + used as truth value warning. + 2004-08-20 Paolo Carlini * config/abi/x86_64-linux-gnu/32/baseline_symbols.txt: Add 32 bit diff --git a/libstdc++-v3/include/c_std/cmath.tcc b/libstdc++-v3/include/c_std/cmath.tcc index d771467ec61..c6df0a0ed86 100644 --- a/libstdc++-v3/include/c_std/cmath.tcc +++ b/libstdc++-v3/include/c_std/cmath.tcc @@ -40,7 +40,7 @@ namespace std { _Tp __y = __n % 2 ? __x : 1; - while (__n >>= 1) + while ((__n >>= 1)) { __x = __x * __x; if (__n % 2) -- 2.30.2