* eoReduceSplit.h: useless comparaision fixed since it was: unsigned < 0

This commit is contained in:
Caner Candan 2012-06-14 15:30:13 +02:00
commit 461edcf3cf

View file

@ -104,7 +104,7 @@ public:
unsigned eliminated = howMany(popSize);
if (!eliminated) // nothing to do
return ;
unsigned newsize = popSize - eliminated;
long newsize = static_cast<long>(popSize) - static_cast<long>(eliminated);
if (newsize < 0)
throw std::logic_error("eoLinearTruncateSplit: Cannot truncate to a larger size!\n");