refs #800 Fixed some implicit conversion warnings.

This commit is contained in:
Mathew Sutcliffe
2016-11-10 00:36:25 +00:00
committed by Klaus Basan
parent 461474e29d
commit 5791de6860
16 changed files with 36 additions and 36 deletions

View File

@@ -40,7 +40,7 @@ namespace BlackMisc
template <typename ForwardIt, typename OutputIt, typename Generator>
void copyRandomElements(ForwardIt in, ForwardIt end, OutputIt out, int n, Generator &&rng)
{
for (auto size = std::distance(in, end); in != end && n > 0; ++in, --size)
for (auto size = static_cast<int>(std::distance(in, end)); in != end && n > 0; ++in, --size)
{
if (std::uniform_int_distribution<>(0, size - 1)(rng) < n)
{