提交 8225a069 编写于 作者: J jp9000

util/darray.h: Fix astoundingly silly assert

上级 92812ba3
......@@ -143,8 +143,6 @@ static inline void darray_resize(const size_t element_size,
static inline void darray_copy(const size_t element_size, struct darray *dst,
const struct darray *da)
{
assert(element_size == element_size);
if (da->num == 0) {
darray_free(dst);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册