Skip to content
Merged
Prev Previous commit
fix cast
  • Loading branch information
kumaraditya303 committed Jul 21, 2025
commit 1a02ae6305819cb96204318d2f1b016998518b3b
2 changes: 1 addition & 1 deletion Objects/dictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ _PyDict_GetMethodStackRef(PyDictObject *mp, PyObject *key, _PyStackRef *method)
#ifdef Py_GIL_DISABLED
PyDictKeysObject *dk = _Py_atomic_load_ptr_acquire(&mp->ma_keys);
if (dk->dk_kind == DICT_KEYS_UNICODE) {
_PyStackRef ref; //
_PyStackRef ref;
Py_ssize_t ix = lookup_threadsafe_unicode(dk, key, hash, &ref);
if (ix >= 0) {
assert(!PyStackRef_IsNull(ref));
Expand Down
2 changes: 1 addition & 1 deletion Objects/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@ _PyObject_GetMethodStackRef(PyThreadState *ts, PyObject *obj,
}
if (dict != NULL) {
assert(PyUnicode_CheckExact(name));
int found = _PyDict_GetMethodStackRef(dict, name, method);
int found = _PyDict_GetMethodStackRef((PyDictObject *)dict, name, method);
if (found < 0) {
assert(PyStackRef_IsNull(*method));
return -1;
Expand Down
Loading