Explorar el Código

Fix incorrect strcmp check

ThePantsThief hace 10 años
padre
commit
9e928b0b09
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Classes/Utility/FLEXRuntimeUtility.m

+ 1 - 1
Classes/Utility/FLEXRuntimeUtility.m

@@ -209,7 +209,7 @@ const unsigned int kFLEXNumberOfImplicitArgs = 2;
 #ifdef __arm64__
     // See http://www.sealiesoftware.com/blog/archive/2013/09/24/objc_explain_Non-pointer_isa.html
     const char *name = ivar_getName(ivar);
-    if (type[0] == @encode(Class)[0] && strcmp(name, "isa") != 0) {
+    if (type[0] == @encode(Class)[0] && strcmp(name, "isa") == 0) {
         value = object_getClass(object);
     } else
 #endif