diff --git a/test/Metadata.cpp b/test/Metadata.cpp index 3b27e3101..27e5332af 100644 --- a/test/Metadata.cpp +++ b/test/Metadata.cpp @@ -136,7 +136,7 @@ private: } bytes readBytes(unsigned length) { - bytes ret{m_metadata.begin() + m_pos, m_metadata.begin() + m_pos + length}; + bytes ret{m_metadata.begin() + static_cast(m_pos), m_metadata.begin() + static_cast(m_pos + length)}; m_pos += length; return ret; } diff --git a/test/libevmasm/Optimiser.cpp b/test/libevmasm/Optimiser.cpp index 44fbde927..aaf5498ec 100644 --- a/test/libevmasm/Optimiser.cpp +++ b/test/libevmasm/Optimiser.cpp @@ -141,7 +141,7 @@ namespace ControlFlowGraph cfg(output); AssemblyItems optItems; for (BasicBlock const& block: cfg.optimisedBlocks()) - copy(output.begin() + block.begin, output.begin() + block.end, + copy(output.begin() + static_cast(block.begin), output.begin() + static_cast(block.end), back_inserter(optItems)); output = move(optItems); } diff --git a/test/libsolidity/util/TestFileParser.h b/test/libsolidity/util/TestFileParser.h index 7e89ff09e..80281126c 100644 --- a/test/libsolidity/util/TestFileParser.h +++ b/test/libsolidity/util/TestFileParser.h @@ -98,7 +98,7 @@ private: void advance(unsigned n = 1) { solAssert(m_char != m_source.end(), "Cannot advance beyond end."); - m_char = std::next(m_char, n); + m_char = std::next(m_char, static_cast(n)); } /// Returns the current character or '\0' if at end of input.