Wrong type used for adding a block when listing the files in a CPM FS

This commit is contained in:
Maxime Croizer
2020-02-12 12:43:28 +01:00
parent b0a670219b
commit a8b6ca13b7

View File

@@ -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;