mirror of https://github.com/davisking/dlib.git
Changed code to avoid warning in gcc.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403691
This commit is contained in:
parent
ea551f7953
commit
53ab1fd3ae
|
@ -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>(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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue