1
0
forked from Rativel/BurritOS

switching from vec to slice

This commit is contained in:
Moysan Gabriel
2023-04-19 00:31:46 +02:00
parent d6ac7671dc
commit 153c3d6618
3 changed files with 22 additions and 16 deletions

View File

@@ -65,8 +65,6 @@ impl FileHdr {
}
pub fn re_allocate(&mut self, free_map: &mut BitMap, old_file_size: i32, new_file_size: i32) -> bool {
openfile::div_round_up(1,1);
let mut new_num_sectors = openfile::div_round_up(new_file_size, SECTOR_SIZE) - self.num_sectors;
self.num_bytes = new_file_size;