From d25e28d584d20650127cde9b1ea66c41eaf187f2 Mon Sep 17 00:00:00 2001 From: Nikhil Benesch Date: Mon, 3 Apr 2017 11:19:29 -0700 Subject: [PATCH] replace sometimes-undefined uint type with unsigned int Summary: `uint` is nonstandard and not a built-in type on all compilers; replace it with the always-valid `unsigned int`. I assume this went unnoticed because it's inside an `#ifdef ROCKDB_JEMALLOC`. Closes https://github.com/facebook/rocksdb/pull/2075 Differential Revision: D4820427 Pulled By: ajkr fbshipit-source-id: 0876561 --- db/db_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index ce38b471d3..3aaceb9526 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -607,7 +607,7 @@ static void GetJemallocStatus(void* mstat_arg, const char* status) { static void DumpMallocStats(std::string* stats) { #ifdef ROCKSDB_JEMALLOC MallocStatus mstat; - const uint kMallocStatusLen = 1000000; + const unsigned int kMallocStatusLen = 1000000; std::unique_ptr buf{new char[kMallocStatusLen + 1]}; mstat.cur = buf.get(); mstat.end = buf.get() + kMallocStatusLen;