Fix warning

master
Marc Gilleron 2021-07-28 19:43:25 +01:00
parent d6e4769f08
commit 8ba9f07978
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ template <typename T>
void raw_copy_to(PoolVector<T> &to, const std::vector<T> &from) {
to.resize(from.size());
// resize can fail in case allocation was not possible
ERR_FAIL_COND(from.size() != to.size());
ERR_FAIL_COND(from.size() != static_cast<size_t>(to.size()));
typename PoolVector<T>::Write w = to.write();
memcpy(w.ptr(), from.data(), from.size() * sizeof(T));
}