From: Kefu Chai Date: Wed, 2 Sep 2015 10:45:50 +0000 (+0800) Subject: rocksdb: fix build on i386 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F6%2Fhead;p=rocksdb.git rocksdb: fix build on i386 unsigned long is 32bit on i386, so 1UL<<32 evaluate to 0. and this is not intended. Signed-off-by: Kefu Chai --- diff --git a/util/thread_status_impl.cc b/util/thread_status_impl.cc index bd3cf826..bd64d448 100644 --- a/util/thread_status_impl.cc +++ b/util/thread_status_impl.cc @@ -100,7 +100,7 @@ std::map 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(