Explorar o código

Fix incorrect strcmp check

ThePantsThief %!s(int64=10) %!d(string=hai) anos
pai
achega
9e928b0b09
Modificáronse 1 ficheiros con 1 adicións e 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