Skip to content

Commit 3364b74

Browse files
authored
Merge pull request RustPython#1225 from RustPython/coolreader18/nested-boolops
Fix compilation of nested boolean operations
2 parents c32b714 + 0e77f0e commit 3364b74

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/src/compile.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,9 @@ impl<O: OutputStream> Compiler<O> {
13031303
self.emit(Instruction::Pop);
13041304
}
13051305
if let Some(false_label) = false_label {
1306-
self.emit(Instruction::Duplicate);
13071306
self.emit(Instruction::JumpIfFalse {
13081307
target: false_label,
13091308
});
1310-
self.emit(Instruction::Pop);
13111309
}
13121310
}
13131311
}

0 commit comments

Comments
 (0)