From: Sage Weil Date: Thu, 26 Mar 2015 18:03:56 +0000 (-0700) Subject: util/logging: fix build on 32-bit arch X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ca7befb55767784a447a5daddd09e387ec92bd3;p=rocksdb.git util/logging: fix build on 32-bit arch Signed-off-by: Sage Weil --- diff --git a/util/logging.cc b/util/logging.cc index e2d1fb346..c8cd1217e 100644 --- a/util/logging.cc +++ b/util/logging.cc @@ -38,7 +38,7 @@ int AppendHumanMicros(uint64_t micros, char* output, int len) { } else if (micros < 1000000l * 60) { return snprintf(output, len, "%.3lf sec", static_cast(micros) / 1000000); - } else if (micros < 1000000l * 60 * 60) { + } else if (micros < 1000000ll * 60 * 60) { return snprintf(output, len, "%02" PRIu64 ":%05.3f M:S", micros / 1000000 / 60, static_cast(micros % 60000000) / 1000000);