From 2c3515f4580b3a33e1eeeae629d1415c53846df8 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Thu, 19 Oct 2017 12:36:51 -0400 Subject: [PATCH] Core buildfix --- src/SDL2.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL2.cs b/src/SDL2.cs index d855794..81d0d3a 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -66,7 +66,7 @@ namespace SDL2 #if NETSTANDARD2_0 /* Modern C# lets you just send the byte*, nice! */ string result = System.Text.Encoding.UTF8.GetString( - bytes, + (byte*) s, (int) (ptr - (byte*) s) ); #else