We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76aca9 commit 9097df8Copy full SHA for 9097df8
include/v.h
@@ -155,8 +155,7 @@ static inline size_t grow_x_2(size_t capacity, size_t elem_size) {
155
} \
156
static inline void V_UNUSED T##_arr_join(struct T##_arr *a, struct T##_arr *b) { \
157
if (!a || !b) return; \
158
- for (size_t i = 0; i < b->count; ++i) \
159
- T##_arr_add(a, b->items[i]); \
+ T##_arr_add_n(a, b->items, b->count); \
160
T##_arr_free(b); \
161
}
162
0 commit comments