Skip to content

Commit 6931e9f

Browse files
committed
typecast changes
1 parent 80d9f68 commit 6931e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/Linux/DiagnosticDataProviderImpl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetCurrentHeapHighWatermark(uint64_t & cu
270270
// the hard disk, called swap space, and free up that page of memory. So it is impossible
271271
// to know accurately peak physical memory it use.
272272
// Update the maximum heap high watermark if the current heap usage exceeds it.
273-
if (static_cast<ssize_t>(mallocInfo.uordblks) > static_cast<ssize_t>(maxHeapHighWatermark))
273+
if (mallocInfo.uordblks > static_cast<int>(maxHeapHighWatermark))
274274
{
275275
maxHeapHighWatermark = mallocInfo.uordblks;
276276
}

0 commit comments

Comments
 (0)