Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 42136:78bc078c7350
Fix a failure that was only apparent on big-endian machines:
the argument corresponding to 'c' in PyArg_ParseTuple() must be an int,
not a char! (This is new -- Walter Doerwald changed it in r56044.
Note sure this was a good idea.)
Also removed a debug printf() call that was causing compiler warnings.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 30 Jun 2007 23:44:36 +0000 |
| parents | 79c2656056f6 |
| children | 1f7b66a9ffb0 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Sat Jun 30 09:22:09 2007 +0000 +++ b/Modules/arraymodule.c Sat Jun 30 23:44:36 2007 +0000 @@ -1208,7 +1208,6 @@ } if (PyBytes_GET_SIZE(b) != nbytes) { - printf("nbytes = %d, len(b) == %d\n", nbytes, PyBytes_GET_SIZE(b)); PyErr_SetString(PyExc_EOFError, "read() didn't return enough bytes"); Py_DECREF(b); @@ -1779,7 +1778,7 @@ static PyObject * array_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { - char c; + int c; PyObject *initial = NULL, *it = NULL; struct arraydescr *descr;
