From 9f41916e00cf6b5d99de1c0c63848ef582457e6b Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 13 Dec 2022 14:13:29 +0000 Subject: [PATCH] [SGI Volume Header] Big endian enums are being properly marshalled. Fixes #789 --- Aaru.Partitions/SGI.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Aaru.Partitions/SGI.cs b/Aaru.Partitions/SGI.cs index e14810408..bef21bf33 100644 --- a/Aaru.Partitions/SGI.cs +++ b/Aaru.Partitions/SGI.cs @@ -141,8 +141,6 @@ public sealed class SGI : IPartition AaruConsole.DebugWriteLine("SGIVH plugin", "dvh.partitions[{0}].first_block = {1}", i, dvh.partitions[i].first_block); - // TODO: Solve big endian marshal with enumerations - dvh.partitions[i].type = (SGIType)Swapping.Swap((uint)dvh.partitions[i].type); AaruConsole.DebugWriteLine("SGIVH plugin", "dvh.partitions[{0}].type = {1}", i, dvh.partitions[i].type); var part = new CommonTypes.Partition @@ -245,7 +243,7 @@ public sealed class SGI : IPartition /// public readonly uint first_block; /// - public SGIType type; + public readonly SGIType type; } struct DeviceParameters