Fix mapping conversion.

This commit is contained in:
chriseth committed 2020-11-18 20:20:25 +01:00
1 parent bfe8737898
commit 7f0cc433be
2 files changed
+8

No files matched your search

+6
View File
@@ -3072,6 +3072,12 @@ string YulUtilFunctions::conversionFunction(Type const& _from, Type const& _to)
solAssert(false, "Invalid conversion from " + _from.canonicalName() + " to " + _to.canonicalName());
break;
}
case Type::Category::Mapping:
{
solAssert(_from == _to, "");
body = "converted := value";
break;
}
default:
solAssert(false, "Invalid conversion from " + _from.canonicalName() + " to " + _to.canonicalName());
}