[Python-checkins] r45276 - python/trunk/Objects/typeobject.c
martin.v.loewis
python-checkins at python.org
Tue Apr 11 11:08:03 CEST 2006
Author: martin.v.loewis
Date: Tue Apr 11 11:08:02 2006
New Revision: 45276
Modified:
python/trunk/Objects/typeobject.c
Log:
Correct casts to char*.
Modified: python/trunk/Objects/typeobject.c
==============================================================================
--- python/trunk/Objects/typeobject.c (original)
+++ python/trunk/Objects/typeobject.c Tue Apr 11 11:08:02 2006
@@ -5216,19 +5216,19 @@
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;
More information about the Python-checkins
mailing list