From 437bd5656cb44f1172add7de5b0d654273d16319 Mon Sep 17 00:00:00 2001 From: ds5678 <49847914+ds5678@users.noreply.github.com> Date: Thu, 27 Feb 2025 01:18:52 -0800 Subject: [PATCH] Fix unit test --- ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue1918.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue1918.cs b/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue1918.cs index 969057eec..c64649147 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue1918.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/ILPretty/Issue1918.cs @@ -11,7 +11,7 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.ILPretty fixed (Guid* ptr = A_0) { void* ptr2 = ptr; - UIntPtr* ptr3 = (UIntPtr*)((byte*)ptr2 - sizeof(UIntPtr)); + UIntPtr* ptr3 = (UIntPtr*)ptr2 - 1; UIntPtr uIntPtr = *ptr3; try {