Skip to content
Snippets Groups Projects
Commit 46b3b3c1 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Remove compiler warning

parent 15e3e64d
No related branches found
No related tags found
No related merge requests found
......@@ -47,9 +47,9 @@ std::unique_ptr<IComputation> Simulation2D::generateSingleThreadedComputation(si
size_t n_elements)
{
assert(start < m_sim_elements.size() && start + n_elements <= m_sim_elements.size());
const auto& begin = m_sim_elements.begin() + start;
const auto& begin = m_sim_elements.begin() + static_cast<long>(start);
return std::make_unique<DWBAComputation>(*sample(), m_options, m_progress, begin,
begin + n_elements);
begin + static_cast<long>(n_elements));
}
void Simulation2D::normalizeIntensity(size_t index, double beam_intensity)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment