File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ namespace {
33
33
34
34
class impl : public filesystem_t {
35
35
public:
36
+ static constexpr u8 SECTOR_DIRECTORY_COUNT = 8 ;
37
+
36
38
struct cbmdos_dirent
37
39
{
38
40
u8 m_next_directory_track;
@@ -55,7 +57,7 @@ class impl : public filesystem_t {
55
57
block_iterator (const impl &fs, u8 first_track, u8 first_sector);
56
58
bool next ();
57
59
const void *data () const ;
58
- const std::array<cbmdos_dirent, 4 > &dirent_data () const ;
60
+ const std::array<cbmdos_dirent, SECTOR_DIRECTORY_COUNT > &dirent_data () const ;
59
61
u8 size () const ;
60
62
61
63
private:
@@ -458,9 +460,9 @@ const void *impl::block_iterator::data() const
458
460
// impl::block_iterator::dirent_data
459
461
// -------------------------------------------------
460
462
461
- const std::array<impl::cbmdos_dirent, 4 > &impl::block_iterator::dirent_data () const
463
+ const std::array<impl::cbmdos_dirent, impl::SECTOR_DIRECTORY_COUNT > &impl::block_iterator::dirent_data () const
462
464
{
463
- return *reinterpret_cast <const std::array<impl::cbmdos_dirent, 4 > *>(m_block.rodata ());
465
+ return *reinterpret_cast <const std::array<impl::cbmdos_dirent, SECTOR_DIRECTORY_COUNT > *>(m_block.rodata ());
464
466
}
465
467
466
468
You can’t perform that action at this time.
0 commit comments