From a8b6ca13b7cafdfc69087357352200f2cd13a551 Mon Sep 17 00:00:00 2001 From: Maxime Croizer Date: Wed, 12 Feb 2020 12:43:28 +0100 Subject: [PATCH] Wrong type used for adding a block when listing the files in a CPM FS --- DiscImageChef.Filesystems/CPM/Super.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscImageChef.Filesystems/CPM/Super.cs b/DiscImageChef.Filesystems/CPM/Super.cs index 0b724d60e..37e2892c8 100644 --- a/DiscImageChef.Filesystems/CPM/Super.cs +++ b/DiscImageChef.Filesystems/CPM/Super.cs @@ -367,8 +367,8 @@ namespace DiscImageChef.Filesystems.CPM // allocate block 0 for a file because that's where the directory resides. // There is also a field telling how many bytes are used in the last block, but its meaning is // non-standard so we must ignore it. - foreach(byte blk in entry.allocations - .Where(blk => !blocks.Contains((ushort)blk) && blk != 0)) blocks.Add((ushort)blk); + foreach(ushort blk in entry.allocations + .Where(blk => !blocks.Contains(blk) && blk != 0)) blocks.Add(blk); // Save the file fInfo.UID = (ulong)user;