Kill two innocuous compiler warnings.

This commit is contained in:
Guido van Rossum 2007-05-15 20:37:11 +00:00
parent 514a0f2c95
commit 0f0eb0b7fe
2 changed files with 2 additions and 2 deletions

View file

@ -433,7 +433,8 @@ buffer_concat(PyBufferObject *self, PyObject *other)
if (PyUnicode_Check(other)) {
/* XXX HACK */
if ( (count = (*pb->bf_getcharbuffer)(other, 0, &ptr2)) < 0 )
if ( (count = (*pb->bf_getcharbuffer)(other, 0,
(char **)&ptr2)) < 0 )
return NULL;
}
else {