[pypy-dev] PyObject_AsCharBuffer: compiler warning

Maciej Fijalkowski fijall at gmail.com
Mon Jan 24 09:41:49 CET 2011


On Mon, Jan 24, 2011 at 10:38 AM, Arnd Rechenburg
<Arnd.Rechenburg at tomtom.com> wrote:
> 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?
>
>

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



More information about the Pypy-dev mailing list