Skip to content

Commit

Permalink
Fix arithmetic operation on void pointer (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
proski authored and jonas committed Apr 13, 2018
1 parent 890eeee commit 0ea017d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ chunk_allocator(void *mem, size_t type_size, size_t chunk_size, size_t size, siz

if (mem == NULL || num_chunks != num_chunks_new) {
size_t newsize = num_chunks_new * chunk_size * type_size;
void *tmp = realloc(mem, newsize);
char *tmp = realloc(mem, newsize);

if (!tmp)
return NULL;
Expand Down

0 comments on commit 0ea017d

Please sign in to comment.