Update PODArray.h

This commit is contained in:
alexey-milovidov 2018-12-25 21:51:37 +03:00 committed by GitHub
parent e1568fd9ad
commit d99072ffb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ protected:
c_start = c_end = reinterpret_cast<char *>(TAllocator::alloc(bytes, std::forward<TAllocatorParams>(allocator_params)...)) + pad_left;
c_end_of_storage = c_start + bytes - pad_right - pad_left;
if (pad_left)
*(t_start() - 1) = {};
t_start()[-1] = {};
}
void dealloc()