]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
rocksdb: fix build on i386 6/head
authorKefu Chai <kchai@redhat.com>
Wed, 2 Sep 2015 10:45:50 +0000 (18:45 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Sep 2015 10:53:01 +0000 (18:53 +0800)
unsigned long is 32bit on i386, so 1UL<<32 evaluate to 0. and this
is not intended.

Signed-off-by: Kefu Chai <kchai@redhat.com>
util/thread_status_impl.cc

index bd3cf82673402774ed8f54eb8b3abf72cfe2ed26..bd64d4480d88dca88323b6c3647104f248833149 100644 (file)
@@ -100,7 +100,7 @@ std::map<std::string, uint64_t>
       property_map.insert(
           {"BaseInputLevel", op_properties[i] >> 32});
       property_map.insert(
-          {"OutputLevel", op_properties[i] % (1LU << 32)});
+          {"OutputLevel", op_properties[i] % (1ULL << 32)});
     } else if (op_type == OP_COMPACTION &&
                i == COMPACTION_PROP_FLAGS) {
       property_map.insert(