mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Correct code to advance ptr to be well-formed C.
This commit is contained in:
parent
2f00c5453e
commit
093c100bd4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue