Преглед на файлове

Fix another case where #45 would occur

Tom Almeida преди 7 години
родител
ревизия
ad6a0aff51
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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