aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-11-15 21:08:28 -0800
committerJason Evans <jasone@canonware.com>2016-11-15 21:08:28 -0800
commit6468dd52f3049c3a792ab8a9eb8ce53227523c0b (patch)
treeeef603c2babdf70dcfdc171b86ddc252a9506b20
parent8f61fdedb908c29905103b22dda32ceb29cd8ede (diff)
downloadjemalloc-6468dd52f3049c3a792ab8a9eb8ce53227523c0b.tar.gz
Fix an MSVC compiler warning.
-rwxr-xr-xsrc/tcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcache.c b/src/tcache.c
index 344b5ee..21540ff 100755
--- a/src/tcache.c
+++ b/src/tcache.c
@@ -519,7 +519,7 @@ tcache_boot(tsdn_t *tsdn)
*/
if (opt_lg_tcache_max < 0 || (ZU(1) << opt_lg_tcache_max) < SMALL_MAXCLASS)
tcache_maxclass = SMALL_MAXCLASS;
- else if ((1U << opt_lg_tcache_max) > large_maxclass)
+ else if ((ZU(1) << opt_lg_tcache_max) > large_maxclass)
tcache_maxclass = large_maxclass;
else
tcache_maxclass = (ZU(1) << opt_lg_tcache_max);