mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Assume that enums always take 1-byte in the codegen and type system
This commit is contained in:
@@ -203,8 +203,8 @@ string YulUtilFunctions::leftAlignFunction(Type const& _type)
|
||||
break;
|
||||
case Type::Category::Enum:
|
||||
{
|
||||
unsigned storageBytes = dynamic_cast<EnumType const&>(_type).storageBytes();
|
||||
templ("body", "aligned := " + leftAlignFunction(IntegerType(8 * storageBytes)) + "(value)");
|
||||
solAssert(dynamic_cast<EnumType const&>(_type).storageBytes() == 1, "");
|
||||
templ("body", "aligned := " + leftAlignFunction(IntegerType(8)) + "(value)");
|
||||
break;
|
||||
}
|
||||
case Type::Category::InaccessibleDynamic:
|
||||
|
||||
Reference in New Issue
Block a user