Kernel: Explicitly construct ByteSpan from Span<uint8_t>

VSC complains about not finding proper constructor, this fixes that.
This commit is contained in:
Bananymous 2024-01-04 12:12:17 +02:00
parent e45b544a39
commit 12a78c822e
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ namespace Kernel
BAN::Vector<uint8_t> superblock_buffer;
TRY(superblock_buffer.resize(sector_count * sector_size));
TRY(m_block_device->read_blocks(lba, sector_count, superblock_buffer.span()));
TRY(m_block_device->read_blocks(lba, sector_count, BAN::ByteSpan(superblock_buffer.span())));
memcpy(&m_superblock, superblock_buffer.data(), sizeof(Ext2::Superblock));
}