diff --git a/js/src/jstl.h b/js/src/jstl.h index 4380c9e86fbd..b3418b2f326e 100644 --- a/js/src/jstl.h +++ b/js/src/jstl.h @@ -192,7 +192,7 @@ class ReentrancyGuard * Round x up to the nearest power of 2. This function assumes that the most * significant bit of x is not set, which would lead to overflow. */ -static JS_ALWAYS_INLINE size_t +JS_ALWAYS_INLINE size_t RoundUpPow2(size_t x) { typedef tl::StaticAssert::result>::result _; @@ -209,7 +209,7 @@ RoundUpPow2(size_t x) * size_t(-1), instead of the real difference. */ template -static JS_ALWAYS_INLINE size_t +JS_ALWAYS_INLINE size_t PointerRangeSize(T *begin, T *end) { return (size_t(end) - size_t(begin)) / sizeof(T);