BuildSystem: binutils1.39->1.44, gcc12.2.0->15.1.0

This commit is contained in:
2025-06-19 19:00:50 +03:00
parent 9c86e5e54d
commit 32c35a822b
9 changed files with 387 additions and 18 deletions

View File

@@ -68,7 +68,9 @@ namespace Kernel
bool has_fd(int fd) const
{
if (fd < 0 || static_cast<size_t>(fd) >= events.size())
// For some reason having (fd < 0 || ...) makes GCC 15.1.0
// think bitmap access can be out of bounds...
if (static_cast<size_t>(fd) >= events.size())
return false;
return bitmap[fd / 32] & (1u << (fd % 32));
}