From 093c100bd49d9ebb891b76ccc2fe0712f61c17df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 25 Mar 2004 16:16:28 +0000 Subject: Correct code to advance ptr to be well-formed C. --- Objects/bufferobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12