From d8b6c21712077208557c5343c2eb062b1c54d850 Mon Sep 17 00:00:00 2001 From: Shailen Date: Fri, 18 Dec 2009 22:43:00 -0600 Subject: [PATCH] Bug 526436 - "AIX Compilation error for 3.7a1pre source js/src/jsvector.h", line 677.21: 1540-0274 (S) The name lookup for "PointerRangeSize" did not find a declaration" [r=lw] --- js/src/jstl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);