Skip to content

Commit 1a02ae6

Browse files
fix cast
1 parent 71864c1 commit 1a02ae6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ _PyDict_GetMethodStackRef(PyDictObject *mp, PyObject *key, _PyStackRef *method)
16721672
#ifdef Py_GIL_DISABLED
16731673
PyDictKeysObject *dk = _Py_atomic_load_ptr_acquire(&mp->ma_keys);
16741674
if (dk->dk_kind == DICT_KEYS_UNICODE) {
1675-
_PyStackRef ref; //
1675+
_PyStackRef ref;
16761676
Py_ssize_t ix = lookup_threadsafe_unicode(dk, key, hash, &ref);
16771677
if (ix >= 0) {
16781678
assert(!PyStackRef_IsNull(ref));

Objects/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1754,7 +1754,7 @@ _PyObject_GetMethodStackRef(PyThreadState *ts, PyObject *obj,
17541754
}
17551755
if (dict != NULL) {
17561756
assert(PyUnicode_CheckExact(name));
1757-
int found = _PyDict_GetMethodStackRef(dict, name, method);
1757+
int found = _PyDict_GetMethodStackRef((PyDictObject *)dict, name, method);
17581758
if (found < 0) {
17591759
assert(PyStackRef_IsNull(*method));
17601760
return -1;

0 commit comments

Comments
 (0)