Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita731dce

Browse files
fix merge
1 parentaadb482 commita731dce

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎Objects/dictobject.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,10 +1587,7 @@ unicodekeys_lookup_unicode_threadsafe_stackref(PyDictKeysObject* dk, PyObject *k
15871587
assert(PyUnicode_CheckExact(key));
15881588
assert(dk->dk_kind==DICT_KEYS_UNICODE);
15891589
Py_ssize_tix=unicodekeys_lookup_unicode_threadsafe(dk,key,hash);
1590-
if (ix==DKIX_EMPTY) {
1591-
*value_addr=PyStackRef_NULL;
1592-
returnDKIX_EMPTY;
1593-
}elseif (ix >=0) {
1590+
if (ix >=0) {
15941591
PyObject**addr_of_value=&DK_UNICODE_ENTRIES(dk)[ix].me_value;
15951592
PyObject*value=_Py_atomic_load_ptr(addr_of_value);
15961593
if (value==NULL) {
@@ -1606,6 +1603,8 @@ unicodekeys_lookup_unicode_threadsafe_stackref(PyDictKeysObject* dk, PyObject *k
16061603
returnix;
16071604
}
16081605
}
1606+
*value_addr=PyStackRef_NULL;
1607+
returnix;
16091608
}
16101609

16111610

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp