From 461edcf3cf277c7d0744bb081a7295af0b23077b Mon Sep 17 00:00:00 2001 From: Caner Candan Date: Thu, 14 Jun 2012 15:30:13 +0200 Subject: [PATCH] * eoReduceSplit.h: useless comparaision fixed since it was: unsigned < 0 --- eo/src/eoReduceSplit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/src/eoReduceSplit.h b/eo/src/eoReduceSplit.h index ce22d027..4b21aa25 100644 --- a/eo/src/eoReduceSplit.h +++ b/eo/src/eoReduceSplit.h @@ -104,7 +104,7 @@ public: unsigned eliminated = howMany(popSize); if (!eliminated) // nothing to do return ; - unsigned newsize = popSize - eliminated; + long newsize = static_cast(popSize) - static_cast(eliminated); if (newsize < 0) throw std::logic_error("eoLinearTruncateSplit: Cannot truncate to a larger size!\n");