From 12a78c822e6fdda76c1d9cdb45e73bee36e963bf Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 4 Jan 2024 12:12:17 +0200 Subject: [PATCH] Kernel: Explicitly construct ByteSpan from Span VSC complains about not finding proper constructor, this fixes that. --- kernel/kernel/FS/Ext2/FileSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/FS/Ext2/FileSystem.cpp b/kernel/kernel/FS/Ext2/FileSystem.cpp index 40a67947cf..9c58403567 100644 --- a/kernel/kernel/FS/Ext2/FileSystem.cpp +++ b/kernel/kernel/FS/Ext2/FileSystem.cpp @@ -34,7 +34,7 @@ namespace Kernel BAN::Vector 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)); }