Sfoglia il codice sorgente

Fix bug in FLEXMethod

Tanner Bennett 6 anni fa
parent
commit
7c28466ec8
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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.