Fixing gcc 4 warnings.

This commit is contained in:
Federico Di Gregorio 2005-07-26 14:49:30 +00:00
parent 2d26f22778
commit 20013f6ff9

View File

@ -127,7 +127,7 @@ binary_quote(binaryObject *self)
if (PyString_Check(self->wrapped) || PyBuffer_Check(self->wrapped)) { if (PyString_Check(self->wrapped) || PyBuffer_Check(self->wrapped)) {
/* escape and build quoted buffer */ /* escape and build quoted buffer */
PyObject_AsCharBuffer(self->wrapped, &buffer, &buffer_len); PyObject_AsCharBuffer(self->wrapped, &buffer, &buffer_len);
to = (char *)binary_escape(buffer, buffer_len, &len); to = (char *)binary_escape((unsigned char*)buffer, buffer_len, &len);
if (to == NULL) { if (to == NULL) {
PyErr_NoMemory(); PyErr_NoMemory();
return NULL; return NULL;