mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +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
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/nico
Commit: acf668e234
Pull-request: https://github.com/SerenityOS/serenity/pull/21576
1 changed files with 3 additions and 3 deletions
|
@ -43,12 +43,12 @@ public:
|
||||||
return offset() + 1;
|
return offset() + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void move_by(size_t count)
|
void move_by(ssize_t count)
|
||||||
{
|
{
|
||||||
if (m_forwards) {
|
if (m_forwards) {
|
||||||
m_offset += static_cast<ssize_t>(count);
|
m_offset += count;
|
||||||
} else {
|
} else {
|
||||||
m_offset -= static_cast<ssize_t>(count);
|
m_offset -= count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue