vec icon indicating copy to clipboard operation
vec copied to clipboard

idx for vec_insert is evaluated twice

Open JerwuQu opened this issue 6 years ago • 0 comments

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

JerwuQu avatar Feb 02 '19 22:02 JerwuQu