diff --git a/source/adios2/engine/ssc/SscReaderGeneric.cpp b/source/adios2/engine/ssc/SscReaderGeneric.cpp index 1df8cf56bc..4250826d5b 100644 --- a/source/adios2/engine/ssc/SscReaderGeneric.cpp +++ b/source/adios2/engine/ssc/SscReaderGeneric.cpp @@ -576,7 +576,7 @@ SscReaderGeneric::BlocksInfo(const VariableStruct &variable, { std::vector ret; size_t blockID = 0; - for (int i = 0; i < m_GlobalWritePattern.size(); ++i) + for (int i = 0; i < static_cast(m_GlobalWritePattern.size()); ++i) { for (auto &v : m_GlobalWritePattern[i]) { diff --git a/source/adios2/engine/ssc/SscReaderGeneric.tcc b/source/adios2/engine/ssc/SscReaderGeneric.tcc index dcdefc50be..cdaae5a54c 100644 --- a/source/adios2/engine/ssc/SscReaderGeneric.tcc +++ b/source/adios2/engine/ssc/SscReaderGeneric.tcc @@ -30,7 +30,7 @@ SscReaderGeneric::BlocksInfoCommon(const Variable &variable, { std::vector::BPInfo> ret; size_t blockID = 0; - for (int i = 0; i < m_GlobalWritePattern.size(); ++i) + for (int i = 0; i < static_cast(m_GlobalWritePattern.size()); ++i) { for (auto &v : m_GlobalWritePattern[i]) {