diff options
author | Sean Gillespie <segilles@microsoft.com> | 2017-06-01 14:07:19 -0700 |
---|---|---|
committer | Sean Gillespie <segilles@microsoft.com> | 2017-06-01 14:07:19 -0700 |
commit | 0597a34b570d359d34a03c74e1007025c43ae7e8 (patch) | |
tree | 03ca2954f19a467115c70842e6eacdf013370846 /src | |
parent | 77eb339752afa774655d88121f4d8f5de05f6d0a (diff) | |
download | coreclr-0597a34b570d359d34a03c74e1007025c43ae7e8.tar.gz coreclr-0597a34b570d359d34a03c74e1007025c43ae7e8.tar.bz2 coreclr-0597a34b570d359d34a03c74e1007025c43ae7e8.zip |
Fix warnings on 32-bit platforms
Diffstat (limited to 'src')
-rw-r--r-- | src/gc/gc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp index 425639cde4..962e09b445 100644 --- a/src/gc/gc.cpp +++ b/src/gc/gc.cpp @@ -4378,12 +4378,12 @@ static size_t get_valid_segment_size (BOOL large_seg=FALSE) if (!large_seg) { initial_seg_size = INITIAL_ALLOC; - seg_size = GCConfig::GetSegmentSize(); + seg_size = static_cast<size_t>(GCConfig::GetSegmentSize()); } else { initial_seg_size = LHEAP_ALLOC; - seg_size = GCConfig::GetSegmentSize() / 2; + seg_size = static_cast<size_t>(GCConfig::GetSegmentSize()) / 2; } #ifdef MULTIPLE_HEAPS @@ -9810,7 +9810,7 @@ HRESULT gc_heap::initialize_gc (size_t segment_size, return E_FAIL; // GCLogFileSize in MBs. - gc_log_file_size = GCConfig::GetLogFileSize(); + gc_log_file_size = static_cast<size_t>(GCConfig::GetLogFileSize()); if (gc_log_file_size <= 0 || gc_log_file_size > 500) { @@ -35446,7 +35446,7 @@ size_t GCHeap::GetValidSegmentSize(bool large_seg) // Get the max gen0 heap size, making sure it conforms. size_t GCHeap::GetValidGen0MaxSize(size_t seg_size) { - size_t gen0size = GCConfig::GetGen0Size(); + size_t gen0size = static_cast<size_t>(GCConfig::GetGen0Size()); if ((gen0size == 0) || !g_theGCHeap->IsValidGen0MaxSize(gen0size)) { |