C++: Enums with default underlying type did not respect 32/64-bit architecture size

This commit is contained in:
Katy Coe
2020-07-24 16:23:36 +02:00
parent 7e9c6b1ee0
commit 336648e8bf

View File

@@ -578,7 +578,7 @@ namespace Il2CppInspector.Cpp
} }
// Create an empty enum with the default underlying type for the architecture (32 or 64-bit) // Create an empty enum with the default underlying type for the architecture (32 or 64-bit)
public CppEnumType NewDefaultEnum(string name = "") => Enum(Types["int"], name); public CppEnumType NewDefaultEnum(string name = "") => Enum(Types["long"], name);
// Generate a populated CppTypeCollection object from a set of Unity headers // Generate a populated CppTypeCollection object from a set of Unity headers
// The CppDeclarationGenerator is used to ensure that the Unity header type names are not used again afterwards // The CppDeclarationGenerator is used to ensure that the Unity header type names are not used again afterwards