diff options
author | chriseth <chris@ethereum.org> | 2017-06-08 21:52:15 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-09 17:45:36 +0800 |
commit | 6b3e7f79cf42edd031a2000978e394d818212b39 (patch) | |
tree | 39176b3ba7da9d82902abbd8eca041845a33bb0b /libjulia/backends/evm/EVMAssembly.cpp | |
parent | 40cb14cdefea38c7b09439210e9eaa8806d609ed (diff) | |
download | dexon-solidity-6b3e7f79cf42edd031a2000978e394d818212b39.tar.gz dexon-solidity-6b3e7f79cf42edd031a2000978e394d818212b39.tar.zst dexon-solidity-6b3e7f79cf42edd031a2000978e394d818212b39.zip |
Comments and consistent variable names.
Diffstat (limited to 'libjulia/backends/evm/EVMAssembly.cpp')
-rw-r--r-- | libjulia/backends/evm/EVMAssembly.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libjulia/backends/evm/EVMAssembly.cpp b/libjulia/backends/evm/EVMAssembly.cpp index 4b16dd24..daca2393 100644 --- a/libjulia/backends/evm/EVMAssembly.cpp +++ b/libjulia/backends/evm/EVMAssembly.cpp @@ -30,6 +30,7 @@ using namespace julia; namespace { +/// Size of labels in bytes. Four-byte labels are required by some EVM1.5 instructions. size_t constexpr labelReferenceSize = 4; } @@ -70,8 +71,8 @@ void EVMAssembly::appendLabelReference(LabelID _labelId) EVMAssembly::LabelID EVMAssembly::newLabelId() { - m_labelPositions[m_nextLabelID] = size_t(-1); - return m_nextLabelID++; + m_labelPositions[m_nextLabelId] = size_t(-1); + return m_nextLabelId++; } void EVMAssembly::appendLinkerSymbol(string const&) |