From: Erik Hallnor Date: Wed, 15 Oct 2003 21:36:10 +0000 (-0400) Subject: Need to cast to avoid infinite recursion. X-Git-Tag: m5_1.0_beta1~18 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f3f180b950abd58764a2a12ace34aa048449c55;p=gem5.git Need to cast to avoid infinite recursion. --HG-- extra : convert_revision : 1c2faba65e1112f0972bae330cbde4a563429b73 --- 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