mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 15:33:26 +00:00
unlikely added
This commit is contained in:
@@ -193,10 +193,10 @@ namespace
|
|||||||
+ static_cast<std::streamoff>(i) * sizeof(current_section);
|
+ static_cast<std::streamoff>(i) * sizeof(current_section);
|
||||||
|
|
||||||
file.seekg(off, std::ios_base::beg);
|
file.seekg(off, std::ios_base::beg);
|
||||||
if (!file.read(reinterpret_cast<char*>(¤t_section), sizeof(current_section)))
|
if (!file.read(reinterpret_cast<char*>(¤t_section), sizeof(current_section))) [[unlikely]]
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
|
|
||||||
if (current_section.sh_name >= shstrtab.size())
|
if (current_section.sh_name >= shstrtab.size()) [[unlikely]]
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// ReSharper disable once CppTooWideScopeInitStatement
|
// ReSharper disable once CppTooWideScopeInitStatement
|
||||||
|
|||||||
Reference in New Issue
Block a user