[util] Fix a code-comment disagreement

And the comment was correct :P
This commit is contained in:
Bill Currie 2021-02-09 14:43:45 +09:00
parent 8664a5b969
commit fdba822809
1 changed files with 1 additions and 1 deletions

View File

@ -121,9 +121,9 @@
#define DARRAY_CLEAR(array) \ #define DARRAY_CLEAR(array) \
do { \ do { \
__auto_type ar = (array); \ __auto_type ar = (array); \
free (ar->a); \
ar->size = 0; \ ar->size = 0; \
if (ar->grow) { \ if (ar->grow) { \
free (ar->a); \
ar->maxSize = 0; \ ar->maxSize = 0; \
ar->a = 0; \ ar->a = 0; \
} \ } \