From: Martin v. Löwis Date: Tue, 11 Apr 2006 09:08:02 +0000 (+0000) Subject: Correct casts to char*. X-Git-Tag: v2.5a2~333 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee36d650bbc7dc85b3290a6d95f21ad637731605;p=thirdparty%2FPython%2Fcpython.git Correct casts to char*. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 0eb4f47b69d2..1c74322d871b 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -5216,19 +5216,19 @@ slotptr(PyTypeObject *type, int ioffset) assert(offset >= 0); assert(offset < offsetof(PyHeapTypeObject, as_buffer)); if (offset >= offsetof(PyHeapTypeObject, as_sequence)) { - ptr = (void *)type->tp_as_sequence; + ptr = (char *)type->tp_as_sequence; offset -= offsetof(PyHeapTypeObject, as_sequence); } else if (offset >= offsetof(PyHeapTypeObject, as_mapping)) { - ptr = (void *)type->tp_as_mapping; + ptr = (char *)type->tp_as_mapping; offset -= offsetof(PyHeapTypeObject, as_mapping); } else if (offset >= offsetof(PyHeapTypeObject, as_number)) { - ptr = (void *)type->tp_as_number; + ptr = (char *)type->tp_as_number; offset -= offsetof(PyHeapTypeObject, as_number); } else { - ptr = (void *)type; + ptr = (char *)type; } if (ptr != NULL) ptr += offset;