diff --git a/Cpp2IL.Core/Utils/MiscUtils.cs b/Cpp2IL.Core/Utils/MiscUtils.cs index 1aba4242..df0e89d9 100644 --- a/Cpp2IL.Core/Utils/MiscUtils.cs +++ b/Cpp2IL.Core/Utils/MiscUtils.cs @@ -101,7 +101,7 @@ internal static string[] GetGenericParams(string input) public static string? TryGetLiteralAt(Il2CppBinary theDll, ulong rawAddr) { - if (theDll.RawLength <= (long)rawAddr) + if ((ulong)theDll.RawLength <= rawAddr) return null; var c = Convert.ToChar(theDll.GetByteAtRawAddress(rawAddr));