* eoReduceSplit.h: useless comparaision fixed since it was: unsigned < 0
This commit is contained in:
parent
6051ccb274
commit
461edcf3cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Reference in a new issue