Fix db_bench on CLANG mode

Summary: "build all" breaks in Clang mode with db_bench. Fix it.

Test Plan: USE_CLANG=1 make all

Reviewers: ljin, rven, yhchiang, igor

Reviewed By: igor

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D29379
main
sdong 10 years ago
parent 9222a2d024
commit 3a40c427b9
  1. 2
      db/db_bench.cc

@ -1193,7 +1193,7 @@ class Benchmark {
while (start < s.size() && isspace(s[start])) {
start++;
}
unsigned int limit = s.size();
unsigned int limit = static_cast<unsigned int>(s.size());
while (limit > start && isspace(s[limit-1])) {
limit--;
}

Loading…
Cancel
Save