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

LibSQL: Compute byte buffer offsets using size_t

Also compute specific offset indices rather than hard-coding them.
This commit is contained in:
Timothy Flynn 2022-10-28 18:30:43 -04:00 committed by Linus Groh
parent 99a713aa5b
commit 3f8a4f69c6
2 changed files with 9 additions and 9 deletions

View file

@ -147,7 +147,7 @@ private:
u8 const* read(size_t sz)
{
auto buffer_ptr = m_buffer.offset_pointer((int)m_current_offset);
auto buffer_ptr = m_buffer.offset_pointer(m_current_offset);
if constexpr (SQL_DEBUG)
dump(buffer_ptr, sz, "<= (in)");
m_current_offset += sz;