From f25e0ca6d342e5f0d0dfb15f11bbfec59460b06f Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 16 Jan 2015 10:15:55 +0000 Subject: [PATCH] g++-4.2 and older doesn't accept binary constants. Signed-off-by: Mikulas Patocka --- persistent-data/space-maps/disk.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/persistent-data/space-maps/disk.cc b/persistent-data/space-maps/disk.cc index c9ca9ea..bc017c3 100644 --- a/persistent-data/space-maps/disk.cc +++ b/persistent-data/space-maps/disk.cc @@ -112,7 +112,7 @@ namespace { ref_t b1 = test_bit_le(bits, b * 2); ref_t b2 = test_bit_le(bits, b * 2 + 1); ref_t result = b2 ? 1 : 0; - result |= b1 ? 0b10 : 0; + result |= b1 ? 2 : 0; return result; } @@ -165,7 +165,7 @@ namespace { ref_t b1 = test_bit_le(bits, b * 2); ref_t b2 = test_bit_le(bits, b * 2 + 1); ref_t result = b2 ? 1 : 0; - result |= b1 ? 0b10 : 0; + result |= b1 ? 2 : 0; it(offset + b, result); } }