diff options
author | Mike Hommey <mh@glandium.org> | 2016-06-09 13:00:18 (GMT) |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2016-06-09 13:00:18 (GMT) |
commit | 0dad5b77196903ba2d6bc64a0d9fdda8e2e9ad78 (patch) | |
tree | 6f0514e2f8735d85e4b3a92dabf1106baa6ee45e /include/jemalloc | |
parent | 91278fbddfb5a0adf265b1b9907a1509b4e1e18c (diff) | |
download | jemalloc-0dad5b77196903ba2d6bc64a0d9fdda8e2e9ad78.zip jemalloc-0dad5b77196903ba2d6bc64a0d9fdda8e2e9ad78.tar.gz jemalloc-0dad5b77196903ba2d6bc64a0d9fdda8e2e9ad78.tar.bz2 |
Fix extent_*_get to build with MSVC
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/extent.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/jemalloc/internal/extent.h b/include/jemalloc/internal/extent.h index d7944c1..dbdc805 100644 --- a/include/jemalloc/internal/extent.h +++ b/include/jemalloc/internal/extent.h @@ -224,22 +224,22 @@ JEMALLOC_INLINE void * 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 * extent_last_get(const extent_t *extent) { - return ((void *)(uintptr_t)extent->e_addr + extent_size_get(extent) - - PAGE); + return ((void *)((uintptr_t)extent->e_addr + extent_size_get(extent) - + PAGE)); } JEMALLOC_INLINE void * 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 |