Commit 2021d6ed authored by Davis King's avatar Davis King

Another cast to avoid a compiler warning

parent 7bc2c97c
......@@ -372,8 +372,8 @@ namespace dlib
if (set1 != set2)
{
const diff_type diff = sorted_edges[i].diff;
const diff_type tau1 = k/data[set1].component_size;
const diff_type tau2 = k/data[set2].component_size;
const diff_type tau1 = static_cast<diff_type>(k/data[set1].component_size);
const diff_type tau2 = static_cast<diff_type>(k/data[set2].component_size);
const diff_type mint = std::min(data[set1].internal_diff + tau1,
data[set2].internal_diff + tau2);
......
Markdown is supported
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