Commit ce3a1f6a authored by Davis King's avatar Davis King

Changed code to avoid warning from gcc.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403695
parent 90ab2a95
......@@ -122,7 +122,7 @@ namespace dlib
std::sort(out.begin(), out.end(), &order_by_distance);
out.swap(edges);
const unsigned long out_size = std::min<unsigned long>((unsigned long)num*percent, edges.size());
const unsigned long out_size = std::min<unsigned long>((unsigned long)(num*percent), edges.size());
out.assign(edges.begin(), edges.begin() + out_size);
}
}
......
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