Use hexadecimal constants instead of binary constants

This addresses the "binary constants are a C++14 feature or GCC
    extension" compiler warnings.

--

PiperOrigin-RevId: 242868639
This commit is contained in:
Lei Zhang 2019-04-10 08:00:05 -07:00 committed by Mehdi Amini
parent d6037276af
commit 9ec5fcf1fa
1 changed files with 3 additions and 3 deletions

View File

@ -56,15 +56,15 @@ enum class OperationProperty {
/// This bit is set for an operation if it is a commutative operation: that
/// is a binary operator (two inputs) where "a op b" and "b op a" produce the
/// same results.
Commutative = 0b01,
Commutative = 0x1,
/// This bit is set for operations that have no side effects: that means that
/// they do not read or write memory, or access any hidden state.
NoSideEffect = 0b10,
NoSideEffect = 0x2,
/// This bit is set for an operation if it is a terminator: that means
/// an operation at the end of a block.
Terminator = 0b100,
Terminator = 0x4,
};
/// This is a "type erased" representation of a registered operation. This