Fixed copyArray() not working with String

This commit is contained in:
Benoit Blanchon
2020-07-22 20:02:33 +02:00
parent 764ff2cd53
commit ebb6d80092
3 changed files with 43 additions and 12 deletions

View File

@ -74,7 +74,7 @@ inline size_t copyArray(ArrayConstRef src, T* dst, size_t len) {
size_t i = 0;
for (ArrayConstRef::iterator it = src.begin(); it != src.end() && i < len;
++it)
dst[i++] = *it;
dst[i++] = it->as<T>();
return i;
}