Update PODArray.h

This commit is contained in:
alexey-milovidov 2020-06-20 10:45:51 +03:00 committed by GitHub
parent 2e604726e0
commit c256682068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,8 +241,8 @@ public:
if (unlikely(required_capacity > capacity()))
reserve(required_capacity, std::forward<TAllocatorParams>(allocator_params)...);
size_t items_bytes_size = byte_size(number_of_items);
memcpy(c_end, ptr, items_bytes_size);
size_t items_byte_size = byte_size(number_of_items);
memcpy(c_end, ptr, items_byte_size);
c_end += items_byte_size;
}