mirror of
https://github.com/python/cpython
synced 2024-09-16 03:29:57 +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))
|
if (!PyArg_UnpackTuple(args, "setdefault", 1, 2, &key, &defaultobj))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
val = PyDict_SetDefault(mp, key, defaultobj);
|
val = PyDict_SetDefault((PyObject *)mp, key, defaultobj);
|
||||||
Py_XINCREF(val);
|
Py_XINCREF(val);
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue