diff options
Diffstat (limited to 'tinyalloc.c')
| -rw-r--r-- | tinyalloc.c | 4 |
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; } |
