From 5e82b75a22e9f1ee379beab45c2ddc6146132aab Mon Sep 17 00:00:00 2001 From: Maoni Stephens Date: Wed, 26 Jul 2017 13:23:20 -0700 Subject: 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) --- src/gc/gc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gc/gc.cpp') 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()) { -- cgit v1.2.3