[PATCH 4/7] thin-provisioning-tools: fix an error on g++ 4.3 and previous

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix this error:
persistent-data/data-structures/bloom_filter.cc:10: error: integer constant is too large for 'unsigned long' type

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
 persistent-data/data-structures/bloom_filter.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: thin-provisioning-tools/persistent-data/data-structures/bloom_filter.cc
===================================================================
--- thin-provisioning-tools.orig/persistent-data/data-structures/bloom_filter.cc	2014-11-05 16:11:48.000000000 +0100
+++ thin-provisioning-tools/persistent-data/data-structures/bloom_filter.cc	2014-11-05 16:12:14.000000000 +0100
@@ -7,7 +7,7 @@ using namespace persistent_data;
 //----------------------------------------------------------------
 
 namespace {
-	static const uint64_t m1 = 0x9e37fffffffc0001UL;
+	static const uint64_t m1 = 0x9e37fffffffc0001ULL;
 	static const unsigned bits = 18;
 
 	static uint32_t hash1(block_address const &b) {

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux