Skip to content

Commit f5e4f02

Browse files
committed
kernel: don't expect modules > 0 even if mod flag set
1 parent d10446e commit f5e4f02

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

api/kernel/os.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ class OS {
211211

212212
if (bootinfo_ and bootinfo_->flags & MULTIBOOT_INFO_MODS) {
213213

214-
Expects(bootinfo_->mods_count > 0
215-
and bootinfo_->mods_count < std::numeric_limits<int>::max());
214+
Expects(bootinfo_->mods_count < std::numeric_limits<int>::max());
216215

217216
return Span_mods{
218217
reinterpret_cast<multiboot_module_t*>(bootinfo_->mods_addr),

0 commit comments

Comments
 (0)