Use JS_CEILING_LOG2W in JSTempVector (r=waldo)

This commit is contained in:
Luke Wagner 2009-08-25 12:09:20 -07:00
parent 1ef84cf920
commit 528b9ad665

View File

@ -571,8 +571,7 @@ JSTempVector<T,N>::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<size_t>::result);
newCap = size_t(1) << newCapLog2;