From afc85038c2a032f288b71dc6d17384c0923b7710 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 6 Jan 2024 12:31:13 +0000 Subject: [PATCH] fix: remove .ToPointer call in tests project --- VpSharp.Tests/src/MarshellerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VpSharp.Tests/src/MarshellerTests.cs b/VpSharp.Tests/src/MarshellerTests.cs index 6020537..97d0e8b 100644 --- a/VpSharp.Tests/src/MarshellerTests.cs +++ b/VpSharp.Tests/src/MarshellerTests.cs @@ -70,6 +70,6 @@ public class MarshellerTests var marshaller = new Utf8StringToNative(); nint buffer = marshaller.MarshalManagedToNative(input); byteCount = Encoding.UTF8.GetByteCount(input); - return (byte*)buffer.ToPointer(); + return (byte*)buffer; } }