Fix implementation of WriteAll for rdcarray types

This commit is contained in:
baldurk
2020-01-06 19:15:28 +00:00
parent 5ef02841b8
commit af1f98039b
+1 -1
View File
@@ -343,7 +343,7 @@ inline bool WriteAll(const char *filename, const void *buffer, size_t size)
template <typename T>
bool WriteAll(const char *filename, const rdcarray<T> &buffer)
{
return WriteAll(filename, buffer.data(), buffer.size());
return WriteAll(filename, buffer.data(), buffer.size() * sizeof(T));
}
template <typename T>