From acf668e2348547ffc0e62fda4f1580bc974d539f Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 23 Oct 2023 00:28:30 -0400 Subject: [PATCH] LibPDF: Make Reader::move_by() parameter more truthful No behavior change, just simpler and less surprising. --- Userland/Libraries/LibPDF/Reader.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }