summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-04-11 09:08:02 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-04-11 09:08:02 (GMT)
commitee36d650bbc7dc85b3290a6d95f21ad637731605 (patch)
tree1a50330f4a6ab64f65112e802d7c9e1fde43b22c
parent72d206776d34bcc38abbf16aa93c2d25ebec4df9 (diff)
downloadcpython-ee36d650bbc7dc85b3290a6d95f21ad637731605.zip
cpython-ee36d650bbc7dc85b3290a6d95f21ad637731605.tar.gz
cpython-ee36d650bbc7dc85b3290a6d95f21ad637731605.tar.bz2
Correct casts to char*.
-rw-r--r--Objects/typeobject.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 0eb4f47..1c74322 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;