From 2cb5467e8514934c4d88304c65050adead0ffc7e Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Fri, 6 Nov 2015 03:26:16 -0500 Subject: misc: Appease clang static analyzer A few minor fixes to issues identified by the clang static analyzer. --- src/mem/cache/tags/fa_lru.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/cache') diff --git a/src/mem/cache/tags/fa_lru.cc b/src/mem/cache/tags/fa_lru.cc index 3f717e3a7..c9531d12c 100644 --- a/src/mem/cache/tags/fa_lru.cc +++ b/src/mem/cache/tags/fa_lru.cc @@ -67,7 +67,7 @@ FALRU::FALRU(const Params *p) numCaches = floorLog2(size) - 17; if (numCaches >0){ cacheBoundaries = new FALRUBlk *[numCaches]; - cacheMask = (1 << numCaches) - 1; + cacheMask = (ULL(1) << numCaches) - 1; } else { cacheMask = 0; } -- cgit v1.2.3