Commit 5cf99865 authored by Quentin Kaci's avatar Quentin Kaci
Browse files

Try to fix Windows pipeline

parent a5e32199
Pipeline #28559 failed with stages
in 28 minutes and 57 seconds
......@@ -28,7 +28,7 @@ namespace mln::morpho
template <typename W, typename A>
std::vector<A> get_computed_attribute(const component_tree<W>& tree, const std::vector<A>& attribute, int nb_leaves)
{
int n = tree.parent.size();
int n = static_cast<int>(tree.parent.size());
std::vector<A> res(n, std::numeric_limits<A>::min());
std::fill_n(res.end() - nb_leaves, nb_leaves, 0);
......@@ -52,9 +52,9 @@ namespace mln::morpho
watershed(const component_tree<W>& tree, image_ch_value_t<I, int> node_map, std::vector<E> mst,
const std::vector<A>& attribute, std::size_t nb_leaves)
{
auto computed_attribute = get_computed_attribute(tree, attribute, nb_leaves);
auto computed_attribute = get_computed_attribute(tree, attribute, static_cast<int>(nb_leaves));
int n = tree.parent.size();
int n = static_cast<int>(tree.parent.size());
std::vector<A> min_computed_attributes(n, std::numeric_limits<A>::max());
for (int i = n - 1; i > 0; --i)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment