mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 12:23:42 +03:00
Fixing gcc 4 warnings.
This commit is contained in:
parent
2d26f22778
commit
20013f6ff9
|
@ -127,7 +127,7 @@ binary_quote(binaryObject *self)
|
|||
if (PyString_Check(self->wrapped) || PyBuffer_Check(self->wrapped)) {
|
||||
/* escape and build quoted buffer */
|
||||
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) {
|
||||
PyErr_NoMemory();
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user