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:
parent
99a713aa5b
commit
3f8a4f69c6
2 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue