aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorVoR0220 <rj@erisindustries.com>2016-12-23 02:20:03 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-20 04:49:01 +0800
commit78769f3b39bccbfa02edec302a02377e8fa08a8d (patch)
treea96666346bbc2abf3d2ed8f331b472b2f90fb2a1 /libsolidity/codegen
parent6d6d4f69078a6417e1cfb89942f7df2264d89987 (diff)
downloaddexon-solidity-78769f3b39bccbfa02edec302a02377e8fa08a8d.tar.gz
dexon-solidity-78769f3b39bccbfa02edec302a02377e8fa08a8d.tar.zst
dexon-solidity-78769f3b39bccbfa02edec302a02377e8fa08a8d.zip
Change fixed point types to have digit count
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/CompilerUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp
index 7067ddd5..782aad9d 100644
--- a/libsolidity/codegen/CompilerUtils.cpp
+++ b/libsolidity/codegen/CompilerUtils.cpp
@@ -504,7 +504,7 @@ void CompilerUtils::convertType(
//shift all integer bits onto the left side of the fixed type
FixedPointType const& targetFixedPointType = dynamic_cast<FixedPointType const&>(_targetType);
if (auto typeOnStack = dynamic_cast<IntegerType const*>(&_typeOnStack))
- if (targetFixedPointType.integerBits() > typeOnStack->numBits())
+ if (targetFixedPointType.numBits() > typeOnStack->numBits())
cleanHigherOrderBits(*typeOnStack);
solUnimplemented("Not yet implemented - FixedPointType.");
}