Skip to content

Commit 5eb028f

Browse files
this time
1 parent 94cc613 commit 5eb028f

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

code/logic/memory.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
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)
2320
static size_t g_alloc_count = 0;

code/tests/cases/test_memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
// * * * * * * * * * * * * * * * * * * * * * * * *

code/tests/cases/test_memory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
// * * * * * * * * * * * * * * * * * * * * * * * *

0 commit comments

Comments
 (0)