diff --git a/Userland/Libraries/LibPDF/Reader.h b/Userland/Libraries/LibPDF/Reader.h index 41347c62e3..bd39b01ac9 100644 --- a/Userland/Libraries/LibPDF/Reader.h +++ b/Userland/Libraries/LibPDF/Reader.h @@ -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(count); + m_offset += count; } else { - m_offset -= static_cast(count); + m_offset -= count; } }