mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
fix warning (closes #17327)
This commit is contained in:
parent
25b3464498
commit
5589850c14
|
@ -2263,7 +2263,7 @@ dict_setdefault(PyDictObject *mp, PyObject *args)
|
|||
if (!PyArg_UnpackTuple(args, "setdefault", 1, 2, &key, &defaultobj))
|
||||
return NULL;
|
||||
|
||||
val = PyDict_SetDefault(mp, key, defaultobj);
|
||||
val = PyDict_SetDefault((PyObject *)mp, key, defaultobj);
|
||||
Py_XINCREF(val);
|
||||
return val;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue