Skip to content
Snippets Groups Projects
Commit 2fb7d9f3 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix a warning

parent f1f4bb85
No related branches found
No related tags found
1 merge request!11Feature/mpi
...@@ -62,7 +62,7 @@ class Messenger ...@@ -62,7 +62,7 @@ class Messenger
PASTIS_INLINE PASTIS_INLINE
Array<DataType> allToAll(const Array<DataType>& sent_array) const Array<DataType> allToAll(const Array<DataType>& sent_array) const
{ {
Assert(sent_array.size() == m_size); Assert(sent_array.size() == static_cast<size_t>(m_size));
if constexpr(std::is_same<DataType, int>()) { if constexpr(std::is_same<DataType, int>()) {
Array<int> recv_array(m_size); Array<int> recv_array(m_size);
return _allToAll(sent_array, recv_array); return _allToAll(sent_array, recv_array);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment