Change fixed point types to have digit count

Signed-off-by: VoR0220 <rj@erisindustries.com>
This commit is contained in:
VoR0220 authored and Alex Beregszaszi committed 2017-07-19 21:49:01 +01:00
1 parent 6d6d4f6907
commit 78769f3b39
5 files changed
+127 -113

No files matched your search

+1 -1
View File
@@ -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.");
}