File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ namespace {
3333
3434class impl : public filesystem_t {
3535public:
36+ static constexpr u8 SECTOR_DIRECTORY_COUNT = 8 ;
37+
3638 struct cbmdos_dirent
3739 {
3840 u8 m_next_directory_track;
@@ -55,7 +57,7 @@ class impl : public filesystem_t {
5557 block_iterator (const impl &fs, u8 first_track, u8 first_sector);
5658 bool next ();
5759 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 ;
5961 u8 size () const ;
6062
6163 private:
@@ -458,9 +460,9 @@ const void *impl::block_iterator::data() const
458460// impl::block_iterator::dirent_data
459461// -------------------------------------------------
460462
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
462464{
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 ());
464466}
465467
466468
You can’t perform that action at this time.
0 commit comments