Permalink
Browse files

using __bridge id in BLOCK_TO_IMPL macro. void * generated compiler e…

…rror
  • Loading branch information...
1 parent 5ea1774 commit 36b01e85d458bc6d70071e393f56e307f9190c84 @fsrc fsrc committed Nov 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Lib/NSDictionary+NamedProperties.m
@@ -32,7 +32,7 @@
#import "TargetConditionals.h"
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
-#define BLOCK_TO_IMPL(_b) imp_implementationWithBlock((void*)CFBridgingRetain(_b))
+#define BLOCK_TO_IMPL(_b) imp_implementationWithBlock((__bridge id)CFBridgingRetain(_b))
#elif TARGET_OS_MAC
#define BLOCK_TO_IMPL(_b) imp_implementationWithBlock(_b)
#endif

0 comments on commit 36b01e8

Please sign in to comment.