Commit 093c100b authored by Martin v. Löwis's avatar Martin v. Löwis

Correct code to advance ptr to be well-formed C.

parent 2f00c545
......@@ -43,7 +43,7 @@ get_buf(PyBufferObject *self, void **ptr, int *size)
offset = count;
else
offset = self->b_offset;
(char *)*ptr = (char *)*ptr + offset;
*(char **)ptr = *(char **)ptr + offset;
if (self->b_size == Py_END_OF_BUFFER)
*size = count;
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment