fixbug: memmov
@@ -85,7 +85,7 @@ static inline void qtype##_push_back(qtype* p, type* elem) {\
qtype##_double_resize(p);\
}\
else if (p->_offset + p->size == p->maxsize) {\
- memmove(p->ptr, p->ptr + p->_offset, p->size);\
+ memmove(p->ptr, p->ptr + p->_offset, sizeof(type) * p->size);\
p->_offset = 0;\
}\
p->ptr[p->_offset + p->size] = *elem;\
