Skip to content

Commit

Permalink
fix no-alloc build
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 16, 2024
1 parent 36de085 commit 78b7fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capnp/src/private/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ where

fn size_in_words(&self) -> usize {
let mut result = 0;
for seg in &self.inner.segments {
result += seg.allocated as usize
for ii in 0 .. self.inner.segments.len() {
result += self.inner.segments[ii].allocated as usize
}
result
}
Expand Down

0 comments on commit 78b7fc6

Please sign in to comment.