Skip to content

Commit

Permalink
Fix a signed/unsigned comparison warning (#77230)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshung committed Oct 20, 2022
1 parent e242819 commit 9aaa21d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/nativeaot/Runtime/GCMemoryHelpers.inl
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ FORCEINLINE void InlinedBulkWriteBarrier(void* pMemStart, size_t cbMemSize)
// heap validation.

uintptr_t* realSlot = (uintptr_t*)pMemStart;
uintptr_t slotCount = cbMemSize / sizeof(uintptr_t);
ptrdiff_t slotCount = (ptrdiff_t)(cbMemSize / sizeof(uintptr_t));
ASSERT(slotCount < (uintptr_t*)g_GCShadowEnd - shadowSlot);
do
{
Expand Down

0 comments on commit 9aaa21d

Please sign in to comment.