mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Fix extent_*_get to build with MSVC
This commit is contained in:
parent
91278fbddf
commit
0dad5b7719
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue