Kaydet (Commit) 5589850c authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix warning (closes #17327)

üst 25b34644
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment