Consistently use size_t rather than uint64_t for extent serial numbers.
This commit is contained in:
parent
6a71d37a75
commit
2379479225
@ -67,7 +67,7 @@ arena_miscelm_extent_get(const arena_chunk_map_misc_t *miscelm)
|
|||||||
JEMALLOC_INLINE_C int
|
JEMALLOC_INLINE_C int
|
||||||
arena_sn_comp(const arena_chunk_map_misc_t *a, const arena_chunk_map_misc_t *b)
|
arena_sn_comp(const arena_chunk_map_misc_t *a, const arena_chunk_map_misc_t *b)
|
||||||
{
|
{
|
||||||
uint64_t a_sn, b_sn;
|
size_t a_sn, b_sn;
|
||||||
|
|
||||||
assert(a != NULL);
|
assert(a != NULL);
|
||||||
assert(b != NULL);
|
assert(b != NULL);
|
||||||
|
@ -37,8 +37,8 @@ extent_sz_comp(const extent_node_t *a, const extent_node_t *b)
|
|||||||
JEMALLOC_INLINE_C int
|
JEMALLOC_INLINE_C int
|
||||||
extent_sn_comp(const extent_node_t *a, const extent_node_t *b)
|
extent_sn_comp(const extent_node_t *a, const extent_node_t *b)
|
||||||
{
|
{
|
||||||
uint64_t a_sn = (uintptr_t)extent_node_sn_get(a);
|
size_t a_sn = extent_node_sn_get(a);
|
||||||
uint64_t b_sn = (uintptr_t)extent_node_sn_get(b);
|
size_t b_sn = extent_node_sn_get(b);
|
||||||
|
|
||||||
return ((a_sn > b_sn) - (a_sn < b_sn));
|
return ((a_sn > b_sn) - (a_sn < b_sn));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user