Fix build break with older VS versions (#16522)
authorJan Kotas <jkotas@microsoft.com>
Fri, 23 Feb 2018 08:17:45 +0000 (00:17 -0800)
committerGitHub <noreply@github.com>
Fri, 23 Feb 2018 08:17:45 +0000 (00:17 -0800)
src/vm/methodtable.h

index 29d36d1..7bc2a83 100644 (file)
@@ -2218,7 +2218,7 @@ public:
 #endif
     }
 
-    inline static bool IsParentMethodTableTagged(PTR_MethodTable pMT)
+    inline static BOOL IsParentMethodTableTagged(PTR_MethodTable pMT)
     {
         LIMITED_METHOD_CONTRACT;
         TADDR base = dac_cast<TADDR>(pMT) + offsetof(MethodTable, m_pParentMethodTable);
@@ -2228,9 +2228,9 @@ public:
     bool GetFlagHasIndirectParent()
     {
 #ifdef FEATURE_PREJIT
-        return GetFlag(enum_flag_HasIndirectParent);
+        return !!GetFlag(enum_flag_HasIndirectParent);
 #else
-        return FALSE;
+        return false;
 #endif
     }