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/CompilerUtils.h | |
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/CompilerUtils.h')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h index 278f9302..fb169463 100644 --- a/libsolidity/codegen/CompilerUtils.h +++ b/libsolidity/codegen/CompilerUtils.h @@ -177,10 +177,10 @@ public: static unsigned sizeOnStack(std::vector<std::shared_ptr<Type const>> const& _variableTypes); /// Helper function to shift top value on the stack to the left. - void leftShiftNumberOnStack(u256 _shiftFactor); + void leftShiftNumberOnStack(unsigned _bits); /// Helper function to shift top value on the stack to the right. - void rightShiftNumberOnStack(u256 _shiftFactor, bool _isSigned = false); + void rightShiftNumberOnStack(unsigned _bits, bool _isSigned = false); /// Appends code that computes tha Keccak-256 hash of the topmost stack element of 32 byte type. void computeHashStatic(); |