Fixed copyArray() not working with String

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

No files matched your search

+1 -1
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;
}