Merge pull request #1225 from RustPython/coolreader18/nested-boolops

Fix compilation of nested boolean operations
This commit is contained in:
Noah
2019-08-11 09:17:02 -05:00
committed by GitHub

View File

@@ -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);
}
}
}