PyObject_AsCharBuffer: compiler warning

Hi, When I try to use the function PyObject_AsCharBuffer I get the following compiler warning: warning: passing argument 2 of 'PyObject_AsCharBuffer' from incompatible pointer type By using Python it works without problems. In Python: int PyObject_AsCharBuffer(PyObject *obj, const char **buffer, Py_ssize_t *buffer_len) Is there something different in pypy? Regards, Arnd

On Mon, Jan 24, 2011 at 10:38 AM, Arnd Rechenburg <Arnd.Rechenburg@tomtom.com> wrote:
We don't have const char**, we use char** instead. It's a small deficiency of how we do stuff now, probably fixable in the future, but don't worry too much, it works the same way. Cheers, fijal

On Mon, Jan 24, 2011 at 10:38 AM, Arnd Rechenburg <Arnd.Rechenburg@tomtom.com> wrote:
We don't have const char**, we use char** instead. It's a small deficiency of how we do stuff now, probably fixable in the future, but don't worry too much, it works the same way. Cheers, fijal
participants (2)
-
Arnd Rechenburg
-
Maciej Fijalkowski