diff options
author | Georg Brandl <georg@python.org> | 2006-05-29 19:39:45 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-05-29 19:39:45 (GMT) |
commit | 2cfaa34dfa2919803a7caf7cfd99aa21d6c40e06 (patch) | |
tree | 68fad69a60835e80f0ed91d3d38ea8e961efd2c3 /Objects/classobject.c | |
parent | 162997efb10131868b3dd7bec63f1c89b12ec3a5 (diff) | |
download | cpython-2cfaa34dfa2919803a7caf7cfd99aa21d6c40e06.zip cpython-2cfaa34dfa2919803a7caf7cfd99aa21d6c40e06.tar.gz cpython-2cfaa34dfa2919803a7caf7cfd99aa21d6c40e06.tar.bz2 |
Correct some value converting strangenesses.
Diffstat (limited to 'Objects/classobject.c')
-rw-r--r-- | Objects/classobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/classobject.c b/Objects/classobject.c index 2fb16eb..6d2c648d 100644 --- a/Objects/classobject.c +++ b/Objects/classobject.c @@ -1136,9 +1136,9 @@ instance_ass_item(PyInstanceObject *inst, Py_ssize_t i, PyObject *item) if (func == NULL) return -1; if (item == NULL) - arg = Py_BuildValue("i", i); + arg = PyInt_FromSsize_t(i); else - arg = Py_BuildValue("(iO)", i, item); + arg = Py_BuildValue("(nO)", i, item); if (arg == NULL) { Py_DECREF(func); return -1; |