From c1095a5ea906e1f8d7c951a2d3b3589f13d67b8d Mon Sep 17 00:00:00 2001 From: Patrice Levesque Date: Wed, 17 Feb 2016 11:06:48 -0500 Subject: [PATCH] Fix warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] As previous commit, this code assumed pointers are unsigned int, for display purpose. Replaced the cast with the native '%p' token from NSMutableString::appendFormat that's provided for pointer address output. --- SoObjects/Appointments/MSExchangeFreeBusy.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Appointments/MSExchangeFreeBusy.m b/SoObjects/Appointments/MSExchangeFreeBusy.m index 2028db24b..be8f5919b 100644 --- a/SoObjects/Appointments/MSExchangeFreeBusy.m +++ b/SoObjects/Appointments/MSExchangeFreeBusy.m @@ -339,7 +339,7 @@ size_t curl_body_function_freebusy(void *ptr, size_t size, size_t nmemb, void *i NSMutableString *s; s = [NSMutableString stringWithCapacity: 64]; - [s appendFormat:@"<0x%08X[%@]:", (unsigned int)self, NSStringFromClass([self class])]; + [s appendFormat:@"<%p[%@]:", self, NSStringFromClass([self class])]; if (freeBusyViewType) [s appendFormat:@" freeBusyViewType='%@'", freeBusyViewType]; if (mergedFreeBusy)