From 20c62a132da4e32efbde7df3bb1dbdc4f448243f Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Fri, 13 Jan 2017 13:19:14 +0100 Subject: Make enum Tier into an enum class --- libevmasm/Instruction.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libevmasm/Instruction.h') diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h index c7fad1c5..4ebaeb98 100644 --- a/libevmasm/Instruction.h +++ b/libevmasm/Instruction.h @@ -225,7 +225,7 @@ inline Instruction logInstruction(unsigned _number) return Instruction(unsigned(Instruction::LOG0) + _number); } -enum Tier +enum class Tier : int { ZeroTier = 0, // 0, Zero BaseTier, // 2, Quick @@ -246,7 +246,7 @@ struct InstructionInfo int args; ///< Number of items required on the stack for this instruction (and, for the purposes of ret, the number taken from the stack). int ret; ///< Number of items placed (back) on the stack by this instruction, assuming args items were removed. bool sideEffects; ///< false if the only effect on the execution environment (apart from gas usage) is a change to a topmost segment of the stack - int gasPriceTier; ///< Tier for gas pricing. + Tier gasPriceTier; ///< Tier for gas pricing. }; /// Information on all the instructions. -- cgit