Skip to content

Commit 94cc613

Browse files
update cases
1 parent c8b0d1a commit 94cc613

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/tests/cases/test_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ FOSSIL_TEST(c_test_memory_stats) {
240240
size_t allocs = 0, bytes = 0;
241241
fossil_sys_memory_stats(&allocs, &bytes);
242242
// Just check that the function runs and returns something
243-
ASSUME_ITS_TRUE(allocs >= 0);
243+
ASSUME_ITS_TRUE(allocs >= (size_t)0);
244244
ASSUME_ITS_TRUE(bytes >= 0);
245245
}
246246

code/tests/cases/test_memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ FOSSIL_TEST(cpp_test_memory_class_stats) {
410410
size_t allocs = 0, bytes = 0;
411411
fossil::sys::Memory::stats(&allocs, &bytes);
412412
// Just check that stats call does not crash and returns something
413-
ASSUME_ITS_TRUE(allocs >= 0);
413+
ASSUME_ITS_TRUE(allocs >= (size_t)0);
414414
ASSUME_ITS_TRUE(bytes >= 0);
415415
}
416416

0 commit comments

Comments
 (0)