calloc should take size_t

This commit is contained in:
Yuichi Nishiwaki 2013-12-01 12:44:43 +09:00
parent 04434f44fd
commit a43e3248e8
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ enum pic_parser_res {
void *pic_alloc(pic_state *, size_t); void *pic_alloc(pic_state *, size_t);
void *pic_realloc(pic_state *, void *, size_t); void *pic_realloc(pic_state *, void *, size_t);
void *pic_calloc(pic_state *, unsigned, size_t); void *pic_calloc(pic_state *, size_t, size_t);
struct pic_object *pic_obj_alloc(pic_state *, size_t, enum pic_tt); struct pic_object *pic_obj_alloc(pic_state *, size_t, enum pic_tt);
struct pic_object *pic_obj_alloc_unsafe(pic_state *, size_t, enum pic_tt); struct pic_object *pic_obj_alloc_unsafe(pic_state *, size_t, enum pic_tt);
void pic_free(pic_state *, void *); void pic_free(pic_state *, void *);

View File

@ -61,7 +61,7 @@ pic_realloc(pic_state *pic, void *ptr, size_t size)
} }
void * void *
pic_calloc(pic_state *pic, unsigned count, size_t size) pic_calloc(pic_state *pic, size_t count, size_t size)
{ {
void *ptr; void *ptr;