diff --git a/X10D/src/IO/Int32Extensions.cs b/X10D/src/IO/Int32Extensions.cs index 57668fb..44fa419 100644 --- a/X10D/src/IO/Int32Extensions.cs +++ b/X10D/src/IO/Int32Extensions.cs @@ -16,9 +16,9 @@ public static class Int32Extensions [Pure] public static byte[] GetBytes(this int value) { - Span buffer = stackalloc byte[4]; + byte[] buffer = new byte[4]; value.TryWriteBytes(buffer); - return buffer.ToArray(); + return buffer; } ///