Skip to content

Commit

Permalink
port PyO3#316
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu committed Dec 27, 2018
1 parent 4c1a817 commit 4fad2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pythonrun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ mod array_list {
pub fn pop_back(&mut self) -> Option<T> {
self.length -= 1;
let current_idx = self.next_idx();
if self.length >= BLOCK_SIZE && current_idx == 0 {
if current_idx == 0 {
let last_list = self.inner.pop_back()?;
return Some(last_list[0].clone());
}
Expand Down

0 comments on commit 4fad2c3

Please sign in to comment.