From 528b9ad6658e913c7ac635b5fba6ea53986c4b9d Mon Sep 17 00:00:00 2001 From: Luke Wagner Date: Tue, 25 Aug 2009 12:09:20 -0700 Subject: [PATCH] Use JS_CEILING_LOG2W in JSTempVector (r=waldo) --- js/src/jsvector.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/src/jsvector.h b/js/src/jsvector.h index b714f1065454..5cce407d2a90 100644 --- a/js/src/jsvector.h +++ b/js/src/jsvector.h @@ -571,8 +571,7 @@ JSTempVector::calculateNewCapacity(size_t curLength, size_t lengthInc, } /* Round up to next power of 2. */ - size_t newCapLog2; - JS_CEILING_LOG2(newCapLog2, newMinCap); + size_t newCapLog2 = JS_CEILING_LOG2W(newMinCap); JS_ASSERT(newCapLog2 < JSUtils::BitSize::result); newCap = size_t(1) << newCapLog2;