]> granicus.if.org Git - python/commitdiff
Correct casts to char*.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 11 Apr 2006 09:08:02 +0000 (09:08 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 11 Apr 2006 09:08:02 +0000 (09:08 +0000)
Objects/typeobject.c

index 0eb4f47b69d21bd0cb0559db8075d67bdb60930a..1c74322d871b89eb695744570ae960e2fb95ffd0 100644 (file)
@@ -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;