diff options
Diffstat (limited to 'include/genalloc.h')
-rw-r--r-- | include/genalloc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/genalloc.h b/include/genalloc.h index ee489af..aaa17f3 100644 --- a/include/genalloc.h +++ b/include/genalloc.h @@ -48,7 +48,7 @@ int ta_ready(x,n) register ta *x; register unsigned int n; \ i = x->a; \ if (n > i) { \ x->a = base + n + (n >> 3); \ - if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ + if (alloc_re((void **)&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ x->a = i; return 0; } \ return 1; } \ x->len = 0; \ @@ -61,7 +61,7 @@ int ta_rplus(x,n) register ta *x; register unsigned int n; \ i = x->a; n += x->len; \ if (n > i) { \ x->a = base + n + (n >> 3); \ - if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ + if (alloc_re((void **)&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ x->a = i; return 0; } \ return 1; } \ x->len = 0; \ |