Commit 20d67199 authored by A. Wilcox's avatar A. Wilcox

XBridge: Use const void * instead of uintptr_t for member size in calloc call.

parent dbba6388
......@@ -81,7 +81,7 @@ void bridge_helper_cppify_dict(NSDictionary *changedKeys, WTDictionary *properti
properties->set([key UTF8String], [val pointerValue]);
else if([val isKindOfClass:[NSArray class]])
const void **array = static_cast<const void **>(calloc(sizeof(uintptr_t), [val count]));
const void **array = static_cast<const void **>(calloc(sizeof(const void *), [val count]));
NSUInteger next_obj = 0;
for(; next_obj < [val count]; next_obj++)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment