WebPLog2FloorC: clear -Wshadow warning

log -> log_value

Change-Id: Iae7cea7e0875e59b0806de41eb0b58815307495e
This commit is contained in:
James Zern 2017-03-22 23:50:31 -07:00
parent d0b7404e00
commit ae836410bb

View File

@ -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.