Fix extent_*_get to build with MSVC

This commit is contained in:
Mike Hommey 2016-06-09 22:00:18 +09:00
parent 91278fbddf
commit 0dad5b7719

View File

@ -224,22 +224,22 @@ JEMALLOC_INLINE void *
extent_before_get(const extent_t *extent) extent_before_get(const extent_t *extent)
{ {
return ((void *)(uintptr_t)extent->e_addr - PAGE); return ((void *)((uintptr_t)extent->e_addr - PAGE));
} }
JEMALLOC_INLINE void * JEMALLOC_INLINE void *
extent_last_get(const extent_t *extent) extent_last_get(const extent_t *extent)
{ {
return ((void *)(uintptr_t)extent->e_addr + extent_size_get(extent) - return ((void *)((uintptr_t)extent->e_addr + extent_size_get(extent) -
PAGE); PAGE));
} }
JEMALLOC_INLINE void * JEMALLOC_INLINE void *
extent_past_get(const extent_t *extent) extent_past_get(const extent_t *extent)
{ {
return ((void *)(uintptr_t)extent->e_addr + extent_size_get(extent)); return ((void *)((uintptr_t)extent->e_addr + extent_size_get(extent)));
} }
JEMALLOC_INLINE bool JEMALLOC_INLINE bool