[Python-checkins] cpython: fix warning (closes #17327)
benjamin.peterson
python-checkins at python.org
Fri Mar 8 14:36:56 CET 2013
http://hg.python.org/cpython/rev/ca9a85c36e09
changeset: 82548:ca9a85c36e09
parent: 82546:58c07ba40926
user: Benjamin Peterson <benjamin at python.org>
date: Fri Mar 08 08:36:49 2013 -0500
summary:
fix warning (closes #17327)
files:
Objects/dictobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -2263,7 +2263,7 @@
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;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list