@@ -43,11 +43,11 @@ id objc_getProperty(id self, SEL _cmd, ptrdiff_t offset, BOOL atomic) { if (atomic) { - id *ptr = (id*)((char*)self + offset); + id *ptr = (id*)(void*)((char*)self + offset); #ifdef OF_THREADS unsigned hash = SPINLOCK_HASH(ptr); assert(of_spinlock_lock(&spinlocks[hash])); @@ -59,19 +59,19 @@ #else return [[*ptr retain] autorelease]; #endif } - return *(id*)((char*)self + offset); + return *(id*)(void*)((char*)self + offset); } void objc_setProperty(id self, SEL _cmd, ptrdiff_t offset, id value, BOOL atomic, BOOL copy) { if (atomic) { - id *ptr = (id*)((char*)self + offset); + id *ptr = (id*)(void*)((char*)self + offset); #ifdef OF_THREADS unsigned hash = SPINLOCK_HASH(ptr); assert(of_spinlock_lock(&spinlocks[hash])); @@ -103,11 +103,11 @@ #endif return; } - id *ptr = (id*)((char*)self + offset); + id *ptr = (id*)(void*)((char*)self + offset); id old = *ptr; switch (copy) { case 0: *ptr = [value retain];