Showing the changes to src/vm/string.cpp (1 of 3 files). Show all
Unified · Split
| @@ -231,7 +231,7 @@ vm_string_t::vm_string_t(const vm_string_t &s1, const vm_string_t &s2) · 230 unmodified lines | |||
| 231 | , _encoded_str{ nullptr } | 231 | , _encoded_str{ nullptr } |
| 232 | , _is_alloc{ true } | 232 | , _is_alloc{ true } |
| 233 | , _length{ s1._length + s2._length } | 233 | , _length{ s1._length + s2._length } |
| 234 | , _length_max{ s1._length + s2._length } | 234 | , _length_max{ compute_max_length(s1._length + s2._length) } |
| 235 | , _mem{} | 235 | , _mem{} |
| 236 | { | 236 | { |
| 237 | _mem.alloc = calloc_memory<uint8_t>(_length_max * _character_size); | 237 | _mem.alloc = calloc_memory<uint8_t>(_length_max * _character_size); |