Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compact_array: Fix ubsan error (#284)
Do not `memcpy` or `deallocate` if `old_capacity == 0`. `Array() == nullptr` in this case, so `memcpy` is UB. Fixes #283 .
- Loading branch information