diff --git a/properties.m b/properties.m index e4aea0f..faea56f 100644 --- a/properties.m +++ b/properties.m @@ -343,7 +343,7 @@ const char *property_getAttributes(objc_property_t property) *insert = '\0'; // If another thread installed the encoding string while we were computing // it, then discard the one that we created and return theirs. - if (!__sync_bool_compare_and_swap(&(property->name), name, encoding)) + if (!__sync_bool_compare_and_swap(&(property->name), name, (char*)encoding)) { free(encoding); return property->name + 2;