Explorar o código

Fix bug in FLEXMethod

Tanner Bennett %!s(int64=6) %!d(string=hai) anos
pai
achega
7c28466ec8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Classes/Utility/Runtime/FLEXMethod.m

+ 1 - 1
Classes/Utility/Runtime/FLEXMethod.m

@@ -37,7 +37,7 @@
 }
 
 + (instancetype)selector:(SEL)selector class:(Class)cls {
-    BOOL instance = class_isMetaClass(cls);
+    BOOL instance = !class_isMetaClass(cls);
     // class_getInstanceMethod will return an instance method if not given
     // not given a metaclass, or a class method if given a metaclass, but
     // this isn't documented so we just want to be safe here.