Fix an MSVC compiler warning.

This commit is contained in:
Jason Evans 2016-11-15 21:08:28 -08:00
parent 8f61fdedb9
commit 6468dd52f3

View File

@ -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);