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
This commit is contained in:
Nikhil Benesch 2017-04-03 11:19:29 -07:00 committed by Facebook Github Bot
parent a1d7e487b3
commit d25e28d584
1 changed files with 1 additions and 1 deletions

View File

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