diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 06:59:22 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-02-16 06:59:22 (GMT) |
commit | e0e89f79201e2ee57ebd0cc4765793d870c0a5c0 (patch) | |
tree | 2333ae17ed3e93be9887a083c71a8b7a17927637 /Objects | |
parent | 2c95cc6d72957296c46bb11362359675a47e2085 (diff) | |
download | cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.zip cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.tar.gz cpython-e0e89f79201e2ee57ebd0cc4765793d870c0a5c0.tar.bz2 |
Revert 42400.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bufferobject.c | 6 | ||||
-rw-r--r-- | Objects/dictobject.c | 2 | ||||
-rw-r--r-- | Objects/funcobject.c | 4 | ||||
-rw-r--r-- | Objects/listobject.c | 4 | ||||
-rw-r--r-- | Objects/structseq.c | 6 |
5 files changed, 11 insertions, 11 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index 73f361e..b0227c1 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -246,15 +246,15 @@ buffer_repr(PyBufferObject *self) return PyString_FromFormat("<%s buffer ptr %p, size %zd at %p>", status, self->b_ptr, - (long)self->b_size, + self->b_size, self); else return PyString_FromFormat( "<%s buffer for %p, size %zd, offset %zd at %p>", status, self->b_base, - (long)self->b_size, - (long)self->b_offset, + self->b_size, + self->b_offset, self); } diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 7910cb6..f5e5320 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1149,7 +1149,7 @@ PyDict_MergeFromSeq2(PyObject *d, PyObject *seq2, int override) PyErr_Format(PyExc_ValueError, "dictionary update sequence element #%d " "has length %zd; 2 is required", - i, (long)n); + i, n); goto Fail; } diff --git a/Objects/funcobject.c b/Objects/funcobject.c index ff70baf..fe34a11 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -251,7 +251,7 @@ func_set_code(PyFunctionObject *op, PyObject *value) "%s() requires a code object with %zd free vars," " not %zd", PyString_AsString(op->func_name), - (long)nclosure, (long)nfree); + nclosure, nfree); return -1; } tmp = op->func_code; @@ -403,7 +403,7 @@ func_new(PyTypeObject* type, PyObject* args, PyObject* kw) return PyErr_Format(PyExc_ValueError, "%s requires closure of length %zd, not %zd", PyString_AS_STRING(code->co_name), - (long)nfree, (long)nclosure); + nfree, nclosure); if (nclosure) { Py_ssize_t i; for (i = 0; i < nclosure; i++) { diff --git a/Objects/listobject.c b/Objects/listobject.c index a970c14..c083ffc 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -2600,8 +2600,8 @@ list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value) if (PySequence_Fast_GET_SIZE(seq) != slicelength) { PyErr_Format(PyExc_ValueError, "attempt to assign sequence of size %zd to extended slice of size %zd", - (long)PySequence_Fast_GET_SIZE(seq), - (long)slicelength); + PySequence_Fast_GET_SIZE(seq), + slicelength); Py_DECREF(seq); return -1; } diff --git a/Objects/structseq.c b/Objects/structseq.c index 7a01fc4..023a1fd 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -126,7 +126,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (len < min_len) { PyErr_Format(PyExc_TypeError, "%.500s() takes an at least %zd-sequence (%zd-sequence given)", - type->tp_name, (long)min_len, (long)len); + type->tp_name, min_len, len); Py_DECREF(arg); return NULL; } @@ -134,7 +134,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (len > max_len) { PyErr_Format(PyExc_TypeError, "%.500s() takes an at most %zd-sequence (%zd-sequence given)", - type->tp_name, (long)max_len, (long)len); + type->tp_name, max_len, len); Py_DECREF(arg); return NULL; } @@ -143,7 +143,7 @@ structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwds) if (len != min_len) { PyErr_Format(PyExc_TypeError, "%.500s() takes a %zd-sequence (%zd-sequence given)", - type->tp_name, (long)min_len, (long)len); + type->tp_name, min_len, len); Py_DECREF(arg); return NULL; } |