forked from Rust-related/RustPython
Merge pull request #1225 from RustPython/coolreader18/nested-boolops
Fix compilation of nested boolean operations
This commit is contained in:
@@ -1303,11 +1303,9 @@ impl<O: OutputStream> Compiler<O> {
|
||||
self.emit(Instruction::Pop);
|
||||
}
|
||||
if let Some(false_label) = false_label {
|
||||
self.emit(Instruction::Duplicate);
|
||||
self.emit(Instruction::JumpIfFalse {
|
||||
target: false_label,
|
||||
});
|
||||
self.emit(Instruction::Pop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user