Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix GCC warnings
  • Loading branch information
cshung committed Aug 26, 2021
commit 6f643fae878f6be214911bd3ab334e189c13991e
4 changes: 2 additions & 2 deletions src/coreclr/gc/gc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43175,7 +43175,7 @@ unsigned int GCHeap::WhichGeneration (Object* object)

unsigned int GCHeap::WhichRange (Object* object, uint8_t** ppStart, uint8_t** ppAllocated, uint8_t** ppReserved)
{
unsigned int generation = -1;
int generation = -1;
heap_segment * hs = gc_heap::find_segment ((uint8_t*)object, FALSE);
#ifdef USE_REGIONS
generation = heap_segment_gen_num (hs);
Expand Down Expand Up @@ -43235,7 +43235,7 @@ unsigned int GCHeap::WhichRange (Object* object, uint8_t** ppStart, uint8_t** pp
*ppReserved = heap_segment_reserved (hs);
}
#endif //USE_REGIONS
return generation;
return (unsigned int)generation;
}

bool GCHeap::IsEphemeral (Object* object)
Expand Down