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]

This commit is contained in:
Shailen 2009-12-18 22:43:00 -06:00
Родитель 33e230da5e
Коммит d8b6c21712
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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<tl::IsSameType<size_t,JSUword>::result>::result _;
@ -209,7 +209,7 @@ RoundUpPow2(size_t x)
* size_t(-1), instead of the real difference.
*/
template <class T>
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);