mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
fixed bug
This commit is contained in:
@@ -194,6 +194,11 @@ namespace
|
|||||||
if (!file.read(reinterpret_cast<char*>(&segment), sizeof(segment))) [[unlikely]]
|
if (!file.read(reinterpret_cast<char*>(&segment), sizeof(segment))) [[unlikely]]
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
|
|
||||||
|
if (!segment.nsects)
|
||||||
|
{
|
||||||
|
cmd_offset += static_cast<std::streamoff>(lc.cmdsize);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
std::streamoff sect_offset = cmd_offset + static_cast<std::streamoff>(sizeof(segment));
|
std::streamoff sect_offset = cmd_offset + static_cast<std::streamoff>(sizeof(segment));
|
||||||
|
|
||||||
for (std::uint32_t j = 0; j < segment.nsects; ++j)
|
for (std::uint32_t j = 0; j < segment.nsects; ++j)
|
||||||
|
|||||||
Reference in New Issue
Block a user