From 1fab00bf855e2c6a8dfd7fc005528926ecd9fd67 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Thu, 25 Mar 2021 16:56:43 +0800 Subject: [PATCH] tune BLOCKHEAP structure --- include/gdi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/gdi.h b/include/gdi.h index 0509555e..617130f6 100644 --- a/include/gdi.h +++ b/include/gdi.h @@ -602,11 +602,13 @@ typedef struct _BLOCKHEAP /** * The first free element in the heap. */ - int free; + size_t free; /** * Pointer to the pre-allocated heap. */ void* heap; + + size_t nr_alloc; } BLOCKHEAP; /**