Skip to content

Commit 35b31c6

Browse files
committed
Check keys kind explicitly
1 parent a20a4a4 commit 35b31c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Python/bytecodes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2239,7 +2239,7 @@ dummy_func(
22392239
DEOPT_IF(true);
22402240
}
22412241
PyObject *name = GETITEM(FRAME_CO_NAMES, oparg>>1);
2242-
if (!DK_IS_UNICODE(dict->ma_keys)) {
2242+
if (dict->ma_keys->dk_kind != DICT_KEYS_UNICODE) {
22432243
UNLOCK_OBJECT(dict);
22442244
DEOPT_IF(true);
22452245
}

Python/executor_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)