aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/Instruction.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-07 19:42:02 +0800
committerGitHub <noreply@github.com>2018-11-07 19:42:02 +0800
commita459b8c81ec92f39be67c2d373d120eb86140e00 (patch)
tree3ff90d9e6afde63d1217b37ed62ab6e98d1139fc /libevmasm/Instruction.h
parent88aee34c22d86a004848ae8bdc818b5168dd94cb (diff)
parentab0de38f16a9eff13ee5a32a3408b890d87941f6 (diff)
downloaddexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar
dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.gz
dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.bz2
dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.lz
dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.xz
dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.tar.zst
dexon-solidity-a459b8c81ec92f39be67c2d373d120eb86140e00.zip
Merge pull request #5359 from ethereum/cpp17-forward-compat
Eliminate `byte`-typedef and use `uint8_t` in all their places instead.
Diffstat (limited to 'libevmasm/Instruction.h')
-rw-r--r--libevmasm/Instruction.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libevmasm/Instruction.h b/libevmasm/Instruction.h
index 63424eeb..539a83b0 100644
--- a/libevmasm/Instruction.h
+++ b/libevmasm/Instruction.h
@@ -228,25 +228,25 @@ inline bool isLogInstruction(Instruction _inst)
/// @returns the number of PUSH Instruction _inst
inline unsigned getPushNumber(Instruction _inst)
{
- return (byte)_inst - unsigned(Instruction::PUSH1) + 1;
+ return (uint8_t)_inst - unsigned(Instruction::PUSH1) + 1;
}
/// @returns the number of DUP Instruction _inst
inline unsigned getDupNumber(Instruction _inst)
{
- return (byte)_inst - unsigned(Instruction::DUP1) + 1;
+ return (uint8_t)_inst - unsigned(Instruction::DUP1) + 1;
}
/// @returns the number of SWAP Instruction _inst
inline unsigned getSwapNumber(Instruction _inst)
{
- return (byte)_inst - unsigned(Instruction::SWAP1) + 1;
+ return (uint8_t)_inst - unsigned(Instruction::SWAP1) + 1;
}
/// @returns the number of LOG Instruction _inst
inline unsigned getLogNumber(Instruction _inst)
{
- return (byte)_inst - unsigned(Instruction::LOG0);
+ return (uint8_t)_inst - unsigned(Instruction::LOG0);
}
/// @returns the PUSH<_number> instruction