[Sol->Yul] Adding unimplemented assert for fixed point types on right shift.

This commit is contained in:
Djordje Mijovic 2021-02-09 16:17:56 +01:00
parent 3669137297
commit 993c8c0734

View File

@ -410,6 +410,7 @@ string YulUtilFunctions::typedShiftLeftFunction(Type const& _type, Type const& _
string YulUtilFunctions::typedShiftRightFunction(Type const& _type, Type const& _amountType)
{
solUnimplementedAssert(_type.category() != Type::Category::FixedPoint, "Not yet implemented - FixedPointType.");
solAssert(_type.category() == Type::Category::FixedBytes || _type.category() == Type::Category::Integer, "");
solAssert(_amountType.category() == Type::Category::Integer, "");
solAssert(!dynamic_cast<IntegerType const&>(_amountType).isSigned(), "");