libobs/util: Use correct dereferenced size with da_swap

master
jp9000 2015-11-09 05:07:42 -08:00
parent 19969a27d5
commit 69ab209fdd
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ static inline void darray_swap(const size_t element_size,
darray_move_item(sizeof(*v.array), &v.da, from, to)
#define da_swap(v, idx1, idx2) \
darray_swap(sizeof(v.array), &v.da, idx1, idx2)
darray_swap(sizeof(*v.array), &v.da, idx1, idx2)
#ifdef __cplusplus
}