From ae836410bb48443c619282215b588774b8eaf42f Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 22 Mar 2017 23:50:31 -0700 Subject: [PATCH] WebPLog2FloorC: clear -Wshadow warning log -> log_value Change-Id: Iae7cea7e0875e59b0806de41eb0b58815307495e --- src/utils/utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/utils.h b/src/utils/utils.h index 3ab45905..2220e594 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -112,12 +112,12 @@ static WEBP_INLINE void PutLE32(uint8_t* const data, uint32_t val) { #define WEBP_NEED_LOG_TABLE_8BIT extern const uint8_t WebPLogTable8bit[256]; static WEBP_INLINE int WebPLog2FloorC(uint32_t n) { - int log = 0; + int log_value = 0; while (n >= 256) { - log += 8; + log_value += 8; n >>= 8; } - return log + WebPLogTable8bit[n]; + return log_value + WebPLogTable8bit[n]; } // Returns (int)floor(log2(n)). n must be > 0.