Invert the inverted boolean

This commit is contained in:
coolreader18 2019-09-28 00:41:37 -05:00
parent fee1b6f2c7
commit 0c3482e03a

View file

@ -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: