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.
This commit is contained in:
Patrice Levesque 2016-02-17 11:06:48 -05:00
parent 022fd81474
commit c1095a5ea9

View file

@ -339,7 +339,7 @@ size_t curl_body_function_freebusy(void *ptr, size_t size, size_t nmemb, void *i
NSMutableString *s; NSMutableString *s;
s = [NSMutableString stringWithCapacity: 64]; s = [NSMutableString stringWithCapacity: 64];
[s appendFormat:@"<0x%08X[%@]:", (unsigned int)self, NSStringFromClass([self class])]; [s appendFormat:@"<%p[%@]:", self, NSStringFromClass([self class])];
if (freeBusyViewType) if (freeBusyViewType)
[s appendFormat:@" freeBusyViewType='%@'", freeBusyViewType]; [s appendFormat:@" freeBusyViewType='%@'", freeBusyViewType];
if (mergedFreeBusy) if (mergedFreeBusy)