Skip to content

Commit

Permalink
Fix for compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasMTElliott committed Mar 12, 2018
1 parent 5b6c05b commit d2416a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minjection/Classes/MinjectionOptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ - (void) postInjectWithSelector:(SEL)sel
self.postInjectionExecutor = [^(id target, MinjectionContainer * container) {
if([target respondsToSelector:sel])
{
[target performSelector:sel];
IMP imp = [target methodForSelector:sel];
void (*func)(id, SEL) = (void *)imp;
func(target, sel);
}
else
{
Expand Down

0 comments on commit d2416a8

Please sign in to comment.