diff --git a/src/vec.h b/src/vec.h index 235da7d..38953a0 100644 --- a/src/vec.h +++ b/src/vec.h @@ -33,7 +33,7 @@ #define vec_push(v, val)\ ( vec_expand_(vec_unpack_(v)) ? -1 :\ - ((v)->data[(v)->length++] = (val)), 0 ) + ((v)->data[(v)->length++] = (val), 0), 0 ) #define vec_pop(v)\ @@ -52,7 +52,7 @@ #define vec_insert(v, idx, val)\ ( vec_insert_(vec_unpack_(v), idx) ? -1 :\ - ((v)->data[idx] = (val)), (v)->length++, 0 ) + ((v)->data[idx] = (val), 0), (v)->length++, 0 ) #define vec_sort(v, fn)\