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
commit 3f8a4f69c6
Notes: sideshowbarker 2024-07-17 06:00:02 +09:00
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;