Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alindima committed Jan 31, 2025
1 parent e3a40be commit 36b8bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polkadot/runtime/parachains/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl<Hash: PartialEq + Copy, BlockNumber: AtLeast32BitUnsigned + Copy>
self.buffer.push_back(RelayParentInfo { relay_parent, state_root, claim_queue });

self.latest_number = number;
while self.buffer.len() > max_ancestry_len {
while self.buffer.len() > (max_ancestry_len as usize) {
let _ = self.buffer.pop_front();
}

Expand Down

0 comments on commit 36b8bdd

Please sign in to comment.