misc: chore: Fix object creation in Common project

This commit is contained in:
Evan Husted
2025-01-26 15:21:47 -06:00
parent ae92fbf539
commit 7f5a356c3d
5 changed files with 12 additions and 12 deletions

View File

@@ -164,7 +164,7 @@ namespace Ryujinx.Common.Extensions
// Not enough data in the current segment, try to peek for the data we need.
T buffer = default;
Span<byte> tempSpan = new Span<byte>(&buffer, sizeof(T));
Span<byte> tempSpan = new(&buffer, sizeof(T));
if (!reader.TryCopyTo(tempSpan))
{