Changed code to avoid warning in gcc.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403691
This commit is contained in:
Davis King 2010-06-13 15:46:14 +00:00
parent ea551f7953
commit 53ab1fd3ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}