Bug 762449 - Fix "result of 32-bit shift implicitly converted to 64 bits" on win64. r=njn
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 27 Feb 2015 16:19:00 +0900
changeset 246750 4252e03b5156111a62db12952e51459a6b7070e9
parent 246749 0ad2bf0582302fa92cd3f34d5a38010cb52d4b6a
child 246751 a1a89ff4ee318e8697f4ad1b02b787fc87ad2ef1
push id879
push usercliu@mozilla.com
push dateTue, 03 Mar 2015 03:02:53 +0000
reviewersnjn
bugs762449
milestone39.0a1
Bug 762449 - Fix "result of 32-bit shift implicitly converted to 64 bits" on win64. r=njn
memory/build/mozjemalloc_compat.c
--- a/memory/build/mozjemalloc_compat.c
+++ b/memory/build/mozjemalloc_compat.c
@@ -150,17 +150,17 @@ jemalloc_stats_impl(jemalloc_stats_t *st
   CTL_GET("stats.allocated", allocated);
   CTL_GET("stats.mapped", mapped);
   CTL_GET("opt.lg_chunk", lg_chunk);
   CTL_GET("stats.bookkeeping", stats->bookkeeping);
 
   /* get the summation for all arenas, i == narenas */
   CTL_I_GET("stats.arenas.0.pdirty", pdirty, narenas);
 
-  stats->chunksize = 1 << lg_chunk;
+  stats->chunksize = (size_t) 1 << lg_chunk;
   stats->mapped = mapped;
   stats->allocated = allocated;
   stats->waste = active - allocated;
   stats->page_cache = pdirty * page;
   stats->bin_unused = compute_bin_unused(narenas);
   stats->waste -= stats->bin_unused;
 }