diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-03-25 16:16:28 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-03-25 16:16:28 (GMT) |
commit | 093c100bd49d9ebb891b76ccc2fe0712f61c17df (patch) | |
tree | a714b3eca8e8cca9f6cac7cf63724ae480b5c9c1 /Objects | |
parent | 2f00c5453e550746fbbc8d1f1430db8b8a1f8bdd (diff) | |
download | cpython-093c100bd49d9ebb891b76ccc2fe0712f61c17df.zip cpython-093c100bd49d9ebb891b76ccc2fe0712f61c17df.tar.gz cpython-093c100bd49d9ebb891b76ccc2fe0712f61c17df.tar.bz2 |
Correct code to advance ptr to be well-formed C.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bufferobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index a5aa523..6adf838 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -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 |