fix CS8778: unchecked cast for far-target test constant

This commit is contained in:
kbe
2026-07-21 20:01:04 +02:00
parent 84a3a3eab6
commit 3649feae1f
+1 -1
View File
@@ -187,7 +187,7 @@ public class StubAssemblerTests
public void Far_target_throws()
{
Assert.Throws<ArgumentOutOfRangeException>(() =>
Create().BuildCallStub(IntPtr.Zero, (IntPtr)0xC0000000, [], 4, CallConvention.Cdecl));
Create().BuildCallStub(IntPtr.Zero, unchecked((IntPtr)(nint)0xC0000000), [], 4, CallConvention.Cdecl));
}
[Fact]