g++-4.2 and older doesn't accept binary constants.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
This commit is contained in:
Joe Thornber 2015-01-16 10:15:55 +00:00
parent bd2c0df226
commit f25e0ca6d3

View File

@ -112,7 +112,7 @@ namespace {
ref_t b1 = test_bit_le(bits, b * 2); ref_t b1 = test_bit_le(bits, b * 2);
ref_t b2 = test_bit_le(bits, b * 2 + 1); ref_t b2 = test_bit_le(bits, b * 2 + 1);
ref_t result = b2 ? 1 : 0; ref_t result = b2 ? 1 : 0;
result |= b1 ? 0b10 : 0; result |= b1 ? 2 : 0;
return result; return result;
} }
@ -165,7 +165,7 @@ namespace {
ref_t b1 = test_bit_le(bits, b * 2); ref_t b1 = test_bit_le(bits, b * 2);
ref_t b2 = test_bit_le(bits, b * 2 + 1); ref_t b2 = test_bit_le(bits, b * 2 + 1);
ref_t result = b2 ? 1 : 0; ref_t result = b2 ? 1 : 0;
result |= b1 ? 0b10 : 0; result |= b1 ? 2 : 0;
it(offset + b, result); it(offset + b, result);
} }
} }