mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
fix free_cell_area offset check
This commit is contained in:
@@ -2392,7 +2392,7 @@ fn free_cell_range(page: &mut PageContent, mut offset: u16, len: u16, usable_spa
|
||||
pc
|
||||
};
|
||||
|
||||
if offset < page.cell_content_area() {
|
||||
if offset <= page.cell_content_area() {
|
||||
page.write_u16(PAGE_HEADER_OFFSET_FIRST_FREEBLOCK, pc);
|
||||
page.write_u16(PAGE_HEADER_OFFSET_CELL_CONTENT_AREA, offset + len);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user