compilation fixes (#24613)
authorSinan Kaya <41809318+franksinankaya@users.noreply.github.com>
Fri, 17 May 2019 03:03:58 +0000 (23:03 -0400)
committerJan Kotas <jkotas@microsoft.com>
Fri, 17 May 2019 03:03:58 +0000 (20:03 -0700)
src/ToolBox/superpmi/superpmi-shim-collector/superpmi-shim-collector.cpp
src/ToolBox/superpmi/superpmi-shim-counter/superpmi-shim-counter.cpp
src/ToolBox/superpmi/superpmi-shim-simple/superpmi-shim-simple.cpp
src/vm/crossloaderallocatorhash.inl
src/vm/rejit.cpp
src/vm/rejit.h

index f937ce6..a2a01b1 100644 (file)
@@ -82,10 +82,11 @@ void SetLogFilePath()
     }
 }
 
+extern "C"
 #ifdef FEATURE_PAL
 DLLEXPORT // For Win32 PAL LoadLibrary emulation
 #endif
-    extern "C" BOOL
+    BOOL
     DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
 {
     switch (ul_reason_for_call)
index 57a4ad6..96996ee 100644 (file)
@@ -68,10 +68,11 @@ void SetLogFilePath()
     }
 }
 
+extern "C"
 #ifdef FEATURE_PAL
 DLLEXPORT // For Win32 PAL LoadLibrary emulation
 #endif
-    extern "C" BOOL
+    BOOL
     DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
 {
     switch (ul_reason_for_call)
index 01341cc..07663c8 100644 (file)
@@ -58,10 +58,11 @@ void SetLogFilePath()
     }
 }
 
+extern "C"
 #ifdef FEATURE_PAL
 DLLEXPORT // For Win32 PAL LoadLibrary emulation
 #endif
-    extern "C" BOOL
+    BOOL
     DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
 {
     switch (ul_reason_for_call)
index f31d658..e5c3266 100644 (file)
@@ -30,7 +30,7 @@ template <class TKey_, class TValue_>
     }
     else if ((entriesInArrayTotal >= 2) && (pStartOfValuesData[entriesInArrayTotal - 2] == (TValue)0))
     {
-        usedEntries = (DWORD)pStartOfValuesData[entriesInArrayTotal - 1];
+        usedEntries = (DWORD)(SIZE_T)pStartOfValuesData[entriesInArrayTotal - 1];
     }
     else if (pStartOfValuesData[entriesInArrayTotal - 1] == (TValue)0)
     {
index 47bb7c4..5492749 100644 (file)
@@ -509,7 +509,7 @@ BOOL NativeImageInliningIterator::Next()
 
 MethodDesc *NativeImageInliningIterator::GetMethodDesc()
 {
-    if (m_currentPos == -1 || m_currentPos >= m_dynamicBufferSize)
+    if (m_currentPos == (COUNT_T)-1 || m_currentPos >= m_dynamicBufferSize)
     {
         return NULL;
     }
index a72630a..b417851 100644 (file)
@@ -179,7 +179,7 @@ private:
         static bool IsNull(const element_t &e) { return (e == NULL); }
     };
 
-    static HRESULT ReJitManager::UpdateActiveILVersion(
+    static HRESULT UpdateActiveILVersion(
         SHash<CodeActivationBatchTraits> *pMgrToCodeActivationBatch,
         Module *            pModule,
         mdMethodDef         methodDef,