Browse Source

Fix another case where #45 would occur

Tom Almeida 6 năm trước cách đây
mục cha
commit
ad6a0aff51
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/bookkeeper.rs

+ 1 - 0
src/bookkeeper.rs

@@ -637,6 +637,7 @@ pub trait Allocator: ops::DerefMut<Target = Bookkeeper> {
                 if ind.start == self.pool.len() {
                     self.push(excessive);
                 } else if !excessive.is_empty() {
+                    self.total_bytes += excessive.size();
                     self.pool[ind.start] = excessive;
                 }
                 // Block will still not be adjacent, due to `excessive` being guaranteed to not be