fixed dynarray del bug
This commit is contained in:
parent
024349a59f
commit
e6b0928ac5
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@
|
||||||
static inline void name##_del(struct name *arr, size_t index) { \
|
static inline void name##_del(struct name *arr, size_t index) { \
|
||||||
assert(index < arr->count); \
|
assert(index < arr->count); \
|
||||||
memmove(arr->data + index, arr->data + index + 1, \
|
memmove(arr->data + index, arr->data + index + 1, \
|
||||||
(--arr->count - index) * sizeof(struct name)); \
|
(--arr->count - index) * sizeof(type)); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue