aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMStackTrace.m
diff options
context:
space:
mode:
authorGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-09-09 22:00:25 +0000
committerGravatar gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2011-09-09 22:00:25 +0000
commitf7f3e433ffb6b13ef738737e3b61f657191fd93f (patch)
tree164e7c462788460e5eb65e8523524e93dbd51d0b /Foundation/GTMStackTrace.m
parente4c73da9b59d0b558d96c31968cd0787622c2ef6 (diff)
[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)
Diffstat (limited to 'Foundation/GTMStackTrace.m')
-rw-r--r--Foundation/GTMStackTrace.m8
1 files changed, 4 insertions, 4 deletions
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];