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
main
Nikhil Benesch 8 years ago committed by Facebook Github Bot
parent a1d7e487b3
commit d25e28d584
  1. 2
      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<char[]> buf{new char[kMallocStatusLen + 1]};
mstat.cur = buf.get();
mstat.end = buf.get() + kMallocStatusLen;

Loading…
Cancel
Save