3 ms·
> The handling of endptr in DYN_ARR_RESIZE seems to be incorrect. If I have an array with 2 elements and capacity of 3 and I DYN_ARR_RESIZE it to 5, I now have
by patrick451 4y ago
> The handling of endptr in DYN_ARR_RESIZE seems to be incorrect. If I have an array with 2 elements and capacity of 3 and I DYN_ARR_RESIZE it to 5, I now have an array with 5 elements, 3 of which are garbage values.
Why do you say this is wrong? That's exactly what I would expect.
- orbital223 4y ago> Why do you say this is wrong? Exposing uninitialized memory as valid values tends to be a really bad idea.