fixed warnings

This commit is contained in:
2026-06-10 07:59:16 +02:00
parent e8b919f576
commit 57cbacda15
2 changed files with 4 additions and 4 deletions

View File

@@ -53,10 +53,10 @@ typedef struct _MIHP_HeapConfig
size_t MaxMemoryAreaSize; // Must be a multiple of AllocationAlignment
size_t MinTotalTraversalsBeforeHeapExpansion; // Minimal amounts of traversals during allocation before considering expanding the heap
char MinHeapTraversalPercentToExpand; // Minimal integer percent of the heap traversed before expanding the heap
uint8_t MinHeapTraversalPercentToExpand; // Minimal integer percent of the heap traversed before expanding the heap
size_t AllocationAlignment; // Must be power of two and at least sizeof(size_t)
char AllocationInitialValue; // Initial value the returned blocks are to be filled with
uint8_t AllocationInitialValue; // Initial value the returned blocks are to be filled with
MIHP_HeapValidationMode HeapValidationMode;
@@ -101,7 +101,7 @@ typedef struct _MIHP_HeapSegmentHeader
struct _MIHP_HeapSegmentHeader* PreviousSegment;
struct _MIHP_HeapMemoryAreaHeader* OwningMemoryArea;
char _padding0[16];
uint8_t _padding0[16];
uint32_t Checksum; // Checksum must be the last member !

View File

@@ -8,7 +8,7 @@ MIHP_HeapConfig MIHP_MakeDefaultConfigPreset()
MIHP_HeapConfig cfg = { 0 };
cfg.MinMemoryAreaSize = 4096 * 32;
cfg.MaxMemoryAreaSize = 4096 * 4096 * 128;
cfg.MaxMemoryAreaSize = 4096 * 4096 * 128ull;
cfg.MinTotalTraversalsBeforeHeapExpansion = 10'000;
cfg.MinHeapTraversalPercentToExpand = 80;