diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-30 18:03:26 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-03 06:40:47 +0800 |
commit | 8fd1d4167d2d05363ecf6af7ada42da940199900 (patch) | |
tree | 3a1765d3d4ef9efbec7e8afceaad4d41f3056a62 /libsolidity/codegen/ExpressionCompiler.cpp | |
parent | c7ae042114e50ceccd2c230abf80ac7b246d0a44 (diff) | |
download | dexon-solidity-8fd1d4167d2d05363ecf6af7ada42da940199900.tar dexon-solidity-8fd1d4167d2d05363ecf6af7ada42da940199900.tar.gz dexon-solidity-8fd1d4167d2d05363ecf6af7ada42da940199900.tar.bz2 dexon-solidity-8fd1d4167d2d05363ecf6af7ada42da940199900.tar.lz dexon-solidity-8fd1d4167d2d05363ecf6af7ada42da940199900.tar.xz dexon-solidity-8fd1d4167d2d05363ecf6af7ada42da940199900.tar.zst dexon-solidity-8fd1d4167d2d05363ecf6af7ada42da940199900.zip |
Change shiftNumberOnStack to bits
Diffstat (limited to 'libsolidity/codegen/ExpressionCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index d3586443..82518e8c 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -526,7 +526,7 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall) if (m_context.runtimeContext()) // We have a runtime context, so we need the creation part. - utils().rightShiftNumberOnStack(u256(1) << 32, false); + utils().rightShiftNumberOnStack(32, false); else // Extract the runtime part. m_context << ((u256(1) << 32) - 1) << Instruction::AND; @@ -1269,7 +1269,7 @@ bool ExpressionCompiler::visit(IndexAccess const& _indexAccess) m_context.appendConditionalInvalid(); m_context << Instruction::BYTE; - utils().leftShiftNumberOnStack(u256(1) << (256 - 8)); + utils().leftShiftNumberOnStack(256 - 8); } else if (baseType.category() == Type::Category::TypeType) { |