Undefined behaviour when using vector.resize()
Zaita opened this issue · 1 comments
Zaita commented
Describe the bug
Casal2 is using vector.resize(n, vector[0]) which is actually undefined behaviour.
Release version(s) and/or repository branch(es) affected?
Latest code
Operating system type and version (and build tools types and versions, if applicable)
All
Steps to reproduce the bug
n/a
Expected behavior
The resize and assign methods on vectors should use a value not in the target vector when doing a resize or assign.
Actual behavior
undefined behaviour
Screenshots
n/a
Additional context
Will fix shortly.
Pull requests welcome!
This is an Open Source project - please consider contributing a bug fix
yourself (please read the Contributors Manual and the Contributors Guidelines before starting any work).
Zaita commented
Fixed.