From 43db9b891cd1803f3e27bd650d266123fdcb5c3e Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Mon, 30 Jan 2023 17:05:36 -0800 Subject: [PATCH] fix typo --- Python/symtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/symtable.c b/Python/symtable.c index fb72d93e1ebc23..1dbdc9d6f1086c 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -618,7 +618,7 @@ inline_comprehension(PySTEntryObject *ste, PySTEntryObject *comp, } else { // free vars in comprehension that are locals in outer scope can // now simply be locals, unless they are free in comp children - if ((PyLong_AsLong(existing) && DEF_BOUND) && + if ((PyLong_AsLong(existing) & DEF_BOUND) && !is_free_in_children(comp, k)) { if (PySet_Discard(comp_free, k) < 0) { return 0;