2 ms·
A related issue is that overflow on signed integers in C is undefined. Vec.length, Vec.capacity, and new_capacity should all be changed to size_t to avoid a com
by tjalfi 9y ago
A related issue is that overflow on signed integers in C is undefined. Vec.length, Vec.capacity, and new_capacity should all be changed to size_t to avoid a compiler optimizing out an overflow check.
Edited to be explicit about programming language.
- steveklabnik 9y ago(Note that they are both well-defined in Rust)