vec
vec copied to clipboard
idx for vec_insert is evaluated twice
This causes behavior which the user might not expect and results in segfaults:
int i = 0;
vec_insert(&my_vec, i++, my_value);
// i = 2