mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
LibPDF: Make Reader::move_by() parameter more truthful
No behavior change, just simpler and less surprising.
This commit is contained in:
parent
b13ff8def6
commit
acf668e234
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue