From 603b3bd413d670909811ce49d28a8b0a4ae3ba6b Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Wed, 24 Feb 2016 11:02:14 -0800 Subject: [PATCH] Make nhbins unsigned rather than size_t. --- include/jemalloc/internal/tcache.h | 2 +- src/tcache.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/jemalloc/internal/tcache.h b/include/jemalloc/internal/tcache.h index 09935c36..25eaf142 100644 --- a/include/jemalloc/internal/tcache.h +++ b/include/jemalloc/internal/tcache.h @@ -115,7 +115,7 @@ extern tcache_bin_info_t *tcache_bin_info; * Number of tcache bins. There are NBINS small-object bins, plus 0 or more * large-object bins. */ -extern size_t nhbins; +extern unsigned nhbins; /* Maximum cached size class. */ extern size_t tcache_maxclass; diff --git a/src/tcache.c b/src/tcache.c index 426bb1f7..fb1f057f 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -10,7 +10,7 @@ ssize_t opt_lg_tcache_max = LG_TCACHE_MAXCLASS_DEFAULT; tcache_bin_info_t *tcache_bin_info; static unsigned stack_nelms; /* Total stack elms per tcache. */ -size_t nhbins; +unsigned nhbins; size_t tcache_maxclass; tcaches_t *tcaches;