aboutsummaryrefslogtreecommitdiff
path: root/src/ARMeilleure/Translation/PTC/PtcFormatter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ARMeilleure/Translation/PTC/PtcFormatter.cs')
-rw-r--r--src/ARMeilleure/Translation/PTC/PtcFormatter.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ARMeilleure/Translation/PTC/PtcFormatter.cs b/src/ARMeilleure/Translation/PTC/PtcFormatter.cs
index 2f7a9c21..ddac3133 100644
--- a/src/ARMeilleure/Translation/PTC/PtcFormatter.cs
+++ b/src/ARMeilleure/Translation/PTC/PtcFormatter.cs
@@ -47,7 +47,7 @@ namespace ARMeilleure.Translation.PTC
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static T DeserializeStructure<T>(Stream stream) where T : struct
{
- T structure = default(T);
+ T structure = default;
Span<T> spanT = MemoryMarshal.CreateSpan(ref structure, 1);
int bytesCount = stream.Read(MemoryMarshal.AsBytes(spanT));
@@ -176,4 +176,4 @@ namespace ARMeilleure.Translation.PTC
}
#endregion
}
-} \ No newline at end of file
+}