1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

LibPDF: Make Reader::move_by() parameter more truthful

No behavior change, just simpler and less surprising.
This commit is contained in:
Nico Weber 2023-10-23 00:28:30 -04:00 committed by Tim Flynn
parent b13ff8def6
commit acf668e234

View file

@ -43,12 +43,12 @@ public:
return offset() + 1;
}
void move_by(size_t count)
void move_by(ssize_t count)
{
if (m_forwards) {
m_offset += static_cast<ssize_t>(count);
m_offset += count;
} else {
m_offset -= static_cast<ssize_t>(count);
m_offset -= count;
}
}