summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.c b/lib.c
index 55913d70..eb612f42 100644
--- a/lib.c
+++ b/lib.c
@@ -529,7 +529,7 @@ static val equal_tramp(val env, val left, val right)
unsigned char *chk_malloc(size_t size)
{
- char *ptr = malloc(size);
+ unsigned char *ptr = malloc(size);
if (size && ptr == 0)
ptr = oom_realloc(0, size);
return ptr;
@@ -537,7 +537,7 @@ unsigned char *chk_malloc(size_t size)
unsigned char *chk_realloc(void *old, size_t size)
{
- char *newptr = realloc(old, size);
+ unsigned char *newptr = realloc(old, size);
if (size != 0 && newptr == 0)
newptr = oom_realloc(old, size);
return newptr;