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.
pull/201/head
Patrice Levesque 2016-02-17 11:06:48 -05:00
parent 022fd81474
commit c1095a5ea9
1 changed files with 1 additions and 1 deletions

View File

@ -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)