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.
}
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);
static PyObject *
array_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
- char c;
+ int c;
PyObject *initial = NULL, *it = NULL;
struct arraydescr *descr;