From 336648e8bf157a53ea05eec0dde851c495b1793d Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Fri, 24 Jul 2020 16:23:36 +0200 Subject: [PATCH] C++: Enums with default underlying type did not respect 32/64-bit architecture size --- Il2CppInspector.Common/Cpp/CppTypeCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/Cpp/CppTypeCollection.cs b/Il2CppInspector.Common/Cpp/CppTypeCollection.cs index f1fb1c5..e74c898 100644 --- a/Il2CppInspector.Common/Cpp/CppTypeCollection.cs +++ b/Il2CppInspector.Common/Cpp/CppTypeCollection.cs @@ -578,7 +578,7 @@ namespace Il2CppInspector.Cpp } // 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 // The CppDeclarationGenerator is used to ensure that the Unity header type names are not used again afterwards