More checks for missing mobile type.

This commit is contained in:
chriseth committed 2016-10-24 16:45:25 +02:00
1 parent 6b028701a0
commit f25aa0c68b
5 files changed
+46 -12

No files matched your search

+3
View File
@@ -368,8 +368,11 @@ void CompilerUtils::convertType(Type const& _typeOnStack, Type const& _targetTyp
m_context << (u256(1) << (256 - targetBytesType.numBytes() * 8)) << Instruction::MUL;
}
else if (targetTypeCategory == Type::Category::Enum)
{
solAssert(_typeOnStack.mobileType(), "");
// just clean
convertType(_typeOnStack, *_typeOnStack.mobileType(), true);
}
else if (targetTypeCategory == Type::Category::FixedPoint)
{
solAssert(