From f7f3e433ffb6b13ef738737e3b61f657191fd93f Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Fri, 9 Sep 2011 22:00:25 +0000 Subject: [Author: dmaclach] Clean up clang issues in GTM. The one in GTMABAddressBook is a weird one, that I'll try and file a bug on. R=thomasvl DELTA=92 (53 added, 6 deleted, 33 changed) --- Foundation/GTMStackTrace.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Foundation/GTMStackTrace.m') diff --git a/Foundation/GTMStackTrace.m b/Foundation/GTMStackTrace.m index 5e832c2..8019867 100644 --- a/Foundation/GTMStackTrace.m +++ b/Foundation/GTMStackTrace.m @@ -102,8 +102,8 @@ static NSUInteger GTMGetStackAddressDescriptorsForAddresses(void *pcs[], for (NSUInteger j = 0; j < class_desc_count; ++j) { // First check the class methods. for (NSUInteger k = 0; k < class_descs[j].class_method_count; ++k) { - IMP imp = method_getImplementation(class_descs[j].class_methods[k]); - if (imp <= (IMP)currDesc->address) { + void *imp = (void *)method_getImplementation(class_descs[j].class_methods[k]); + if (imp <= currDesc->address) { size_t diff = (size_t)currDesc->address - (size_t)imp; if (diff < smallest_diff) { best_method = class_descs[j].class_methods[k]; @@ -115,8 +115,8 @@ static NSUInteger GTMGetStackAddressDescriptorsForAddresses(void *pcs[], } // Then check the instance methods. for (NSUInteger k = 0; k < class_descs[j].instance_method_count; ++k) { - IMP imp = method_getImplementation(class_descs[j].instance_methods[k]); - if (imp <= (IMP)currDesc->address) { + void *imp = (void *)method_getImplementation(class_descs[j].instance_methods[k]); + if (imp <= currDesc->address) { size_t diff = (size_t)currDesc->address - (size_t)imp; if (diff < smallest_diff) { best_method = class_descs[j].instance_methods[k]; -- cgit v1.2.3