summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-03-25 16:16:28 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-03-25 16:16:28 (GMT)
commit093c100bd49d9ebb891b76ccc2fe0712f61c17df (patch)
treea714b3eca8e8cca9f6cac7cf63724ae480b5c9c1 /Objects
parent2f00c5453e550746fbbc8d1f1430db8b8a1f8bdd (diff)
downloadcpython-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.c2
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