Remove solved TODO from TODO.txt and fix a bug in file_tree_read

This commit is contained in:
2025-11-10 12:51:12 +01:00
parent 9cdf636eb6
commit 9ea4ee5223
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -422,11 +422,11 @@ int file_tree_read(FileTree *ft, string path,
File *f = &e->f;
*chunk_size = f->chunk_size;
if (len == 0)
return 0;
*chunk_size = f->chunk_size;
uint64_t first_chunk_index = off / f->chunk_size;
uint64_t last_chunk_index = first_chunk_index + (len - 1) / f->chunk_size;