Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: third_party/jemalloc/chromium/jemalloc.c

Issue 12230011: Fix jemalloc c4334 warnings when compiling win64 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/jemalloc/chromium/jemalloc.c
===================================================================
--- third_party/jemalloc/chromium/jemalloc.c (revision 182247)
+++ third_party/jemalloc/chromium/jemalloc.c (working copy)
@@ -4824,7 +4824,7 @@
bin->runcur = NULL;
arena_run_tree_new(&bin->runs);
- bin->reg_size = (1U << (TINY_MIN_2POW + i));
+ bin->reg_size = ((size_t)1 << (TINY_MIN_2POW + i));
prev_run_size = arena_bin_run_size_calc(bin, prev_run_size);
@@ -5875,7 +5875,7 @@
/* Set variables according to the value of opt_small_max_2pow. */
if (opt_small_max_2pow < opt_quantum_2pow)
opt_small_max_2pow = opt_quantum_2pow;
- small_max = (1U << opt_small_max_2pow);
+ small_max = ((size_t)1 << opt_small_max_2pow);
/* Set bin-related variables. */
bin_maxclass = (pagesize >> 1);
@@ -5886,7 +5886,7 @@
nsbins = pagesize_2pow - opt_small_max_2pow - 1;
/* Set variables according to the value of opt_quantum_2pow. */
- quantum = (1U << opt_quantum_2pow);
+ quantum = ((size_t)1 << opt_quantum_2pow);
quantum_mask = quantum - 1;
if (ntbins > 0)
small_min = (quantum >> 1) + 1;
@@ -5895,7 +5895,7 @@
assert(small_min <= quantum);
/* Set variables according to the value of opt_chunk_2pow. */
- chunksize = (1LU << opt_chunk_2pow);
+ chunksize = ((size_t)1 << opt_chunk_2pow);
chunksize_mask = chunksize - 1;
chunk_npages = (chunksize >> pagesize_2pow);
{
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698