aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerUtils.h
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-11-22 00:07:10 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-11-25 22:45:16 +0800
commitea628001d5f34ee1d85398a17f93e7c4f55429fe (patch)
treeb1944bbd5938cc56d8fee290ca2817ccf4c58f6f /libsolidity/codegen/CompilerUtils.h
parent56d664108614fa8fdf63a02d8f605bf5afcd0837 (diff)
downloaddexon-solidity-ea628001d5f34ee1d85398a17f93e7c4f55429fe.tar.gz
dexon-solidity-ea628001d5f34ee1d85398a17f93e7c4f55429fe.tar.zst
dexon-solidity-ea628001d5f34ee1d85398a17f93e7c4f55429fe.zip
codegen: add an option to CovertType so that it can truncate sign bits
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.h')
-rw-r--r--libsolidity/codegen/CompilerUtils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerUtils.h b/libsolidity/codegen/CompilerUtils.h
index ff87124f..977e96d9 100644
--- a/libsolidity/codegen/CompilerUtils.h
+++ b/libsolidity/codegen/CompilerUtils.h
@@ -130,7 +130,7 @@ 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);
+ 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.