[fix] void not void * in vector *_copy

This commit is contained in:
Al
2015-09-07 23:57:44 -07:00
parent cddffdb65f
commit 3fd6552b44

View File

@@ -38,7 +38,7 @@
kv_resize(type, *array, size); \ kv_resize(type, *array, size); \
} \ } \
\ \
static inline void *name##_copy(name *dst, name *src, size_t n) { \ static inline void name##_copy(name *dst, name *src, size_t n) { \
if (dst->m < n) name##_resize(dst, n); \ if (dst->m < n) name##_resize(dst, n); \
memcpy(dst->a, src->a, n * sizeof(type)); \ memcpy(dst->a, src->a, n * sizeof(type)); \
dst->n = n; \ dst->n = n; \