From b609100a563ffd7d393edf089fb2e8cb5f41a5cf Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 24 Jul 2011 19:53:48 +0200 Subject: COMMON: Let intLog2 return an int instead of uint32, since it should return -1 for 0. --- common/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/math.h b/common/math.h index ebe01fbaf5..e1af433f7c 100644 --- a/common/math.h +++ b/common/math.h @@ -58,7 +58,7 @@ static const char LogTable256[256] = { LT(7), LT(7), LT(7), LT(7), LT(7), LT(7), LT(7), LT(7) }; -inline uint32 intLog2(uint32 v) { +inline int intLog2(uint32 v) { register uint32 t, tt; if ((tt = v >> 16)) -- cgit v1.2.3