summaryrefslogtreecommitdiff
path: root/src/gc/gc.cpp
diff options
context:
space:
mode:
authorMaoni Stephens <Maoni0@users.noreply.github.com>2017-07-26 13:23:20 -0700
committerGitHub <noreply@github.com>2017-07-26 13:23:20 -0700
commit5e82b75a22e9f1ee379beab45c2ddc6146132aab (patch)
tree248abd1f445115d2c9eca4aad36d6889f8626b95 /src/gc/gc.cpp
parented71880722e94c348971e89d8953d8059137150e (diff)
downloadcoreclr-5e82b75a22e9f1ee379beab45c2ddc6146132aab.tar.gz
coreclr-5e82b75a22e9f1ee379beab45c2ddc6146132aab.tar.bz2
coreclr-5e82b75a22e9f1ee379beab45c2ddc6146132aab.zip
These 2 places should be size_t, not int 'cause on 64-bit they can be > int's in which we have a problem casting them to int's. (#13047)
Diffstat (limited to 'src/gc/gc.cpp')
-rw-r--r--src/gc/gc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc/gc.cpp b/src/gc/gc.cpp
index 54b6d2c52c..c00f79d1c8 100644
--- a/src/gc/gc.cpp
+++ b/src/gc/gc.cpp
@@ -22034,7 +22034,7 @@ void gc_heap::plan_phase (int condemned_gen_number)
set_node_relocation_distance (plug_start, (new_address - plug_start));
if (last_node && (node_relocation_distance (last_node) ==
(node_relocation_distance (plug_start) +
- (int)node_gap_size (plug_start))))
+ node_gap_size (plug_start))))
{
//dprintf(3,( " Lb"));
dprintf (3, ("%Ix Lb", plug_start));
@@ -24450,7 +24450,7 @@ void gc_heap::gcmemcopy (uint8_t* dest, uint8_t* src, size_t len, BOOL copy_car
#endif //BACKGROUND_GC
//dprintf(3,(" Memcopy [%Ix->%Ix, %Ix->%Ix[", (size_t)src, (size_t)dest, (size_t)src+len, (size_t)dest+len));
dprintf(3,(" mc: [%Ix->%Ix, %Ix->%Ix[", (size_t)src, (size_t)dest, (size_t)src+len, (size_t)dest+len));
- memcopy (dest - plug_skew, src - plug_skew, (int)len);
+ memcopy (dest - plug_skew, src - plug_skew, len);
#ifdef FEATURE_USE_SOFTWARE_WRITE_WATCH_FOR_GC_HEAP
if (SoftwareWriteWatch::IsEnabledForGCHeap())
{