From c487ef4fd9004b1d9d9fc92b565b271450c00b42 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 2 Sep 2015 18:45:50 +0800 Subject: [PATCH] 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 --- util/thread_status_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.47.3