mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
fix warning (closes #17327)
This commit is contained in:
parent
25b3464498
commit
5589850c14
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue