mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
Use JS_CEILING_LOG2W in JSTempVector (r=waldo)
This commit is contained in:
parent
1ef84cf920
commit
528b9ad665
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user