From 1f3f180b950abd58764a2a12ace34aa048449c55 Mon Sep 17 00:00:00 2001 From: Erik Hallnor Date: Wed, 15 Oct 2003 17:36:10 -0400 Subject: [PATCH] Need to cast to avoid infinite recursion. --HG-- extra : convert_revision : 1c2faba65e1112f0972bae330cbde4a563429b73 --- base/intmath.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/intmath.hh b/base/intmath.hh index 7f017a901..77f63fe8d 100644 --- a/base/intmath.hh +++ b/base/intmath.hh @@ -109,14 +109,14 @@ inline int FloorLog2(int32_t x) { assert(x > 0); - return FloorLog2(x); + return FloorLog2((uint32_t)x); } inline int FloorLog2(int64_t x) { assert(x > 0); - return FloorLog2(x); + return FloorLog2((uint64_t)x); } template -- 2.30.2