mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-14 16:45:25 +00:00
Invert the inverted boolean
This commit is contained in:
parent
fee1b6f2c7
commit
0c3482e03a
1 changed files with 3 additions and 3 deletions
|
@ -672,7 +672,7 @@ impl<O: OutputStream> Compiler<O> {
|
|||
));
|
||||
self.enter_scope();
|
||||
|
||||
let mut flags = bytecode::FunctionOpArg::empty();
|
||||
let mut flags = bytecode::FunctionOpArg::default();
|
||||
if have_defaults {
|
||||
flags |= bytecode::FunctionOpArg::HAS_DEFAULTS;
|
||||
}
|
||||
|
@ -992,7 +992,7 @@ impl<O: OutputStream> Compiler<O> {
|
|||
|
||||
// Turn code object into function object:
|
||||
self.emit(Instruction::MakeFunction {
|
||||
flags: bytecode::FunctionOpArg::NO_NEW_LOCALS,
|
||||
flags: bytecode::FunctionOpArg::default() & !bytecode::FunctionOpArg::NEW_LOCALS,
|
||||
});
|
||||
|
||||
self.emit(Instruction::LoadConst {
|
||||
|
@ -1929,7 +1929,7 @@ impl<O: OutputStream> Compiler<O> {
|
|||
|
||||
// Turn code object into function object:
|
||||
self.emit(Instruction::MakeFunction {
|
||||
flags: bytecode::FunctionOpArg::empty(),
|
||||
flags: bytecode::FunctionOpArg::default(),
|
||||
});
|
||||
|
||||
// Evaluate iterated item:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue