File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 1515#include <stdlib.h>
1616#include <string.h>
1717#include <stdio.h>
18- #if !defined(_MSC_VER )
19- #include <malloc.h> // For posix_memalign on some platforms
20- #endif
2118
2219// Internal counters for memory stats (optional, for debug)
2320static size_t g_alloc_count = 0 ;
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ FOSSIL_TEST(c_test_memory_stats) {
241241 fossil_sys_memory_stats (& allocs , & bytes );
242242 // Just check that the function runs and returns something
243243 ASSUME_ITS_TRUE (allocs >= (size_t )0 );
244- ASSUME_ITS_TRUE (bytes >= 0 );
244+ ASSUME_ITS_TRUE (bytes >= ( size_t ) 0 );
245245}
246246
247247// * * * * * * * * * * * * * * * * * * * * * * * *
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ FOSSIL_TEST(cpp_test_memory_class_stats) {
411411 fossil::sys::Memory::stats (&allocs, &bytes);
412412 // Just check that stats call does not crash and returns something
413413 ASSUME_ITS_TRUE (allocs >= (size_t )0 );
414- ASSUME_ITS_TRUE (bytes >= 0 );
414+ ASSUME_ITS_TRUE (bytes >= ( size_t ) 0 );
415415}
416416
417417// * * * * * * * * * * * * * * * * * * * * * * * *
You can’t perform that action at this time.
0 commit comments