chiark / gitweb /
struct/sym.c: Fix loading following table extension.
[mLib] / struct / darray.c
index 0b6c2238b663e5e2349525b804168e6a05f6404d..ed849954bbce6da74daf24d3a9638410cd1d4800 100644 (file)
@@ -27,9 +27,7 @@
 
 /*----- Header files ------------------------------------------------------*/
 
 
 /*----- Header files ------------------------------------------------------*/
 
-#include <stdio.h>
 #include <string.h>
 #include <string.h>
-#include <stdlib.h>
 
 #include "alloc.h"
 #include "arena.h"
 
 #include "alloc.h"
 #include "arena.h"
@@ -113,7 +111,7 @@ void *da_ensure(da_base *b, void *v, size_t sz, size_t n)
    */
 
   nsz = b->sz + b->off;
    */
 
   nsz = b->sz + b->off;
-  GROWBUF_SIZE(nsz, rq, DA_INITSZ, sz);
+  GROWBUF_SIZE(size_t, nsz, rq, DA_INITSZ, sz);
 
   /* --- Reallocate the block --- *
    *
 
   /* --- Reallocate the block --- *
    *
@@ -221,7 +219,7 @@ void *da_shunt(da_base *b, void *v, size_t sz, size_t n)
    */
 
   nsz = b->sz + b->off;
    */
 
   nsz = b->sz + b->off;
-  GROWBUF_SIZE(nsz, rq, DA_INITSZ, sz);
+  GROWBUF_SIZE(size_t, nsz, rq, DA_INITSZ, sz);
 
   /* --- Reallocate the block --- *
    *
 
   /* --- Reallocate the block --- *
    *