aboutsummaryrefslogtreecommitdiff
path: root/tinyalloc.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-07-12 17:06:12 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-07-26 00:27:57 +0200
commit20c7a57ce7900710787ec04322735eebcb1c5e6e (patch)
tree155e10b453f226d7adf0272f2e598fc252435c8e /tinyalloc.c
parent18194dbd09a81e2993cf03153e1d810aa8abe4cc (diff)
Avoid depending on stdint.h
Diffstat (limited to 'tinyalloc.c')
-rw-r--r--tinyalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyalloc.c b/tinyalloc.c
index 67e6220..b95f9f8 100644
--- a/tinyalloc.c
+++ b/tinyalloc.c
@@ -1,5 +1,5 @@
#include "tinyalloc.h"
-#include <stdint.h>
+#include <stddef.h>
#ifdef TA_DEBUG
extern void print_s(char *);
@@ -228,7 +228,7 @@ static void memclear(void *ptr, size_t num) {
*ptrw++ = 0;
}
num &= (sizeof(size_t) - 1);
- uint8_t *ptrb = (uint8_t *)ptrw;
+ unsigned char *ptrb = (unsigned char *)ptrw;
while (num--) {
*ptrb++ = 0;
}