aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2011-07-24 19:53:48 +0200
committerJohannes Schickel2011-07-24 19:53:48 +0200
commitb609100a563ffd7d393edf089fb2e8cb5f41a5cf (patch)
tree90472c22f923c9bf8d7fd6984140e1c3195fd23d
parentd6422468a9c71a3700783467c6054abb618aed65 (diff)
downloadscummvm-rg350-b609100a563ffd7d393edf089fb2e8cb5f41a5cf.tar.gz
scummvm-rg350-b609100a563ffd7d393edf089fb2e8cb5f41a5cf.tar.bz2
scummvm-rg350-b609100a563ffd7d393edf089fb2e8cb5f41a5cf.zip
COMMON: Let intLog2 return an int instead of uint32, since it should return -1 for 0.
-rw-r--r--common/math.h2
1 files changed, 1 insertions, 1 deletions
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))