diff options
author | Suchiman <robinsue@live.de> | 2019-06-11 21:30:57 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-06-11 20:26:23 -0700 |
commit | 13001f90aa71a7a0ec4039922f29087680b44ec3 (patch) | |
tree | 4979f6484f21b7bde85b79d1ec4b3eb46f161c0c /src/gc | |
parent | 7fcbc3b5b0689a959d9da928e4d03f532a851212 (diff) | |
download | coreclr-13001f90aa71a7a0ec4039922f29087680b44ec3.tar.gz coreclr-13001f90aa71a7a0ec4039922f29087680b44ec3.tar.bz2 coreclr-13001f90aa71a7a0ec4039922f29087680b44ec3.zip |
Fix casts
Diffstat (limited to 'src/gc')
-rw-r--r-- | src/gc/gc.cpp | 8 | ||||
-rw-r--r-- | src/gc/gcpriv.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp index 431a08e64a..e9b14c36d0 100644 --- a/src/gc/gc.cpp +++ b/src/gc/gc.cpp @@ -16277,7 +16277,7 @@ start_no_gc_region_status gc_heap::prepare_for_no_gc_region (uint64_t total_size num_heaps = n_heaps; #endif // MULTIPLE_HEAPS - uint64_t total_allowed_soh_allocation = max_soh_allocated * num_heaps; + uint64_t total_allowed_soh_allocation = (uint64_t)max_soh_allocated * num_heaps; // [LOCALGC TODO] // In theory, the upper limit here is the physical memory of the machine, not // SIZE_T_MAX. This is not true today because total_physical_mem can be @@ -16314,7 +16314,7 @@ start_no_gc_region_status gc_heap::prepare_for_no_gc_region (uint64_t total_size if (allocation_no_gc_soh != 0) { - current_no_gc_region_info.soh_allocation_size = static_cast<size_t>(allocation_no_gc_soh); + current_no_gc_region_info.soh_allocation_size = (size_t)allocation_no_gc_soh; size_per_heap = current_no_gc_region_info.soh_allocation_size; #ifdef MULTIPLE_HEAPS size_per_heap /= n_heaps; @@ -16330,7 +16330,7 @@ start_no_gc_region_status gc_heap::prepare_for_no_gc_region (uint64_t total_size if (allocation_no_gc_loh != 0) { - current_no_gc_region_info.loh_allocation_size = static_cast<size_t>(allocation_no_gc_loh); + current_no_gc_region_info.loh_allocation_size = (size_t)allocation_no_gc_loh; size_per_heap = current_no_gc_region_info.loh_allocation_size; #ifdef MULTIPLE_HEAPS size_per_heap /= n_heaps; @@ -17913,7 +17913,7 @@ void gc_heap::enque_pinned_plug (uint8_t* plug, // risks. This happens very rarely and fixing it in the // way so that we can continue is a bit involved and will // not be done in Dev10. - GCToEEInterface::HandleFatalError(CORINFO_EXCEPTION_GC); + GCToEEInterface::HandleFatalError((unsigned int)CORINFO_EXCEPTION_GC); } } diff --git a/src/gc/gcpriv.h b/src/gc/gcpriv.h index 60dcd4236f..ef59a3d925 100644 --- a/src/gc/gcpriv.h +++ b/src/gc/gcpriv.h @@ -37,7 +37,7 @@ inline void FATAL_GC_ERROR() GCToOSInterface::DebugBreak(); #endif // DACCESS_COMPILE _ASSERTE(!"Fatal Error in GC."); - GCToEEInterface::HandleFatalError(COR_E_EXECUTIONENGINE); + GCToEEInterface::HandleFatalError((unsigned int)COR_E_EXECUTIONENGINE); } #ifdef _MSC_VER |