nooc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/nooc
Log | Files | Refs | LICENSE

commit 55c2f96d993d3f08226d66b284fa6cc92b0130ec
parent d08162e709e61fc6c3f0ccbc6d954733b2f7d9ba
Author: Nihal Jere <nihal@nihaljere.xyz>
Date:   Tue, 23 Nov 2021 18:17:45 -0600

cast void* to char* for memcpy for arithmetic

Diffstat:
Marray.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/array.c b/array.c @@ -20,7 +20,7 @@ _array_add(void **data, size_t size, size_t count, size_t *len, size_t *cap, voi return -1; } - memcpy(*data + size*(*len), new, size*count); + memcpy((char *)*data + size*(*len), new, size*count); *len += count; return *len;