diff options
author | chriseth <chris@ethereum.org> | 2016-11-25 23:22:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-25 23:22:12 +0800 |
commit | 3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab (patch) | |
tree | 18ceb911719f0e7f48efa614ba550e8adbc68571 /libsolidity/codegen/CompilerUtils.h | |
parent | 721b6a969685e99078e296d88135ef84f6c001eb (diff) | |
parent | 0be58595036d3411124bc8b39f9d151790d950b4 (diff) | |
download | dexon-solidity-3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab.tar dexon-solidity-3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab.tar.gz dexon-solidity-3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab.tar.bz2 dexon-solidity-3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab.tar.lz dexon-solidity-3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab.tar.xz dexon-solidity-3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab.tar.zst dexon-solidity-3a8a0708ff6cb502603fe2d8d1afa6c3e3b2a6ab.zip |
Merge pull request #1381 from ethereum/overflown_enum_compared
Enum overflow checking before writing to storage
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h index ff87124f..4baf48ff 100644 --- a/libsolidity/codegen/CompilerUtils.h +++ b/libsolidity/codegen/CompilerUtils.h @@ -130,7 +130,8 @@ public: /// if a reference type is converted from calldata or storage to memory. /// If @a _cleanupNeeded, high order bits cleanup is also done if no type conversion would be /// necessary. - void convertType(Type const& _typeOnStack, Type const& _targetType, bool _cleanupNeeded = false); + /// If @a _chopSignBits, the function resets the signed bits out of the width of the signed integer. + void convertType(Type const& _typeOnStack, Type const& _targetType, bool _cleanupNeeded = false, bool _chopSignBits = false); /// Creates a zero-value for the given type and puts it onto the stack. This might allocate /// memory for memory references. |