summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-11-15 13:47:22 -0800
committerJason Evans <jasone@canonware.com>2016-11-15 13:47:22 -0800
commit2379479225e5be5f93626e13a37577c76a670fb3 (patch)
tree545e724d4e57bac770f0f39c2ee673caf3b3428f
parent6a71d37a755cea0a1d89f35dbe7f986abd7c4ca6 (diff)
downloadjemalloc-2379479225e5be5f93626e13a37577c76a670fb3.tar.gz
Consistently use size_t rather than uint64_t for extent serial numbers.
-rw-r--r--src/arena.c2
-rw-r--r--src/extent.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/arena.c b/src/arena.c
index a3f9899f..87eead81 100644
--- a/src/arena.c
+++ b/src/arena.c
@@ -67,7 +67,7 @@ arena_miscelm_extent_get(const arena_chunk_map_misc_t *miscelm)
JEMALLOC_INLINE_C int
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(b != NULL);
diff --git a/src/extent.c b/src/extent.c
index a56018f8..218156c6 100644
--- a/src/extent.c
+++ b/src/extent.c
@@ -37,8 +37,8 @@ extent_sz_comp(const extent_node_t *a, const extent_node_t *b)
JEMALLOC_INLINE_C int
extent_sn_comp(const extent_node_t *a, const extent_node_t *b)
{
- uint64_t a_sn = (uintptr_t)extent_node_sn_get(a);
- uint64_t b_sn = (uintptr_t)extent_node_sn_get(b);
+ size_t a_sn = extent_node_sn_get(a);
+ size_t b_sn = extent_node_sn_get(b);
return ((a_sn > b_sn) - (a_sn < b_sn));
}