diff options
author | Vas Crabb <vas@vastheman.com> | 2022-05-22 09:36:01 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2022-05-22 09:36:01 +1000 |
commit | 3984f8f883ab30ecba97c9f9497445fe91aa00da (patch) | |
tree | 41e9a7e1c229be47cd7d582b5a4ef563e2224795 /src/lib/formats | |
parent | 810d844469787797146d89475cacbba78f5ef2ae (diff) |
srcclean in preparation for release
Diffstat (limited to 'src/lib/formats')
-rw-r--r-- | src/lib/formats/acorn_dsk.cpp | 2 | ||||
-rw-r--r-- | src/lib/formats/fs_coco_rsdos.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/formats/acorn_dsk.cpp b/src/lib/formats/acorn_dsk.cpp index 3b9df1a585d..aa6fc9f2e00 100644 --- a/src/lib/formats/acorn_dsk.cpp +++ b/src/lib/formats/acorn_dsk.cpp @@ -219,7 +219,7 @@ int acorn_dsd_format::find_size(util::random_read &io, uint32_t form_factor, con io.read_at(0x0226, cat, 2, actual); if ((memcmp(cat, "\x4f\x14", 2) == 0 || memcmp(cat, "\x4f\x0a", 2) == 0) && size == (uint64_t)compute_track_size(f) * f.track_count * f.head_count) return i; - + // read sector count from side 0 catalogue io.read_at(0x100, cat, 8, actual); sectors0 = ((cat[6] & 3) << 8) + cat[7]; diff --git a/src/lib/formats/fs_coco_rsdos.cpp b/src/lib/formats/fs_coco_rsdos.cpp index c229257d624..3829159938f 100644 --- a/src/lib/formats/fs_coco_rsdos.cpp +++ b/src/lib/formats/fs_coco_rsdos.cpp @@ -71,7 +71,7 @@ public: std::optional<u8> m_current_granule; u8 m_maximum_granules; u16 m_last_sector_bytes; - std::bitset<256> m_visited_granules; + std::bitset<256> m_visited_granules; }; class file : public ifile_t { @@ -428,7 +428,7 @@ bool impl::granule_iterator::next(u8 &granule, u16 &byte_count) // check for cycles, which should only happen if the disk is corrupt (or not in RS-DOS format) if (m_visited_granules[*next_granule]) - next_granule = std::nullopt; // this is corrupt! + next_granule = std::nullopt; // this is corrupt! else m_visited_granules.set(*next_granule); } |