(VirusShiftMutation::operator()): Fix test for i>1.

This makes t-MGE1bit pass on x86_64 using GCC.
This commit is contained in:
kuepper 2006-12-02 11:36:29 +00:00
commit 3533d8addb
3 changed files with 14 additions and 2 deletions

11
eo/contrib/MGE/ChangeLog Normal file
View file

@ -0,0 +1,11 @@
2006-12-02 Jochen Küpper <jochen@fhi-berlin.mpg.de>
* contrib/MGE/VirusOp.h (VirusShiftMutation::operator()): Fix test for
i>1. This makes t-MGE1bit pass on x86_64 using GCC.
* Local Variables:
* coding: iso-8859-1
* mode: flyspell
* fill-column: 80
* End:

View file

@ -110,7 +110,7 @@ public:
_chrom.virusBitSet(i, false);
}
} else {
if ( i - 1 > 0 ) {
if ( i > 1 ) {
_chrom.virusBitSet(i-1,true);
_chrom.virusBitSet(i, false);
}

View file

@ -22,7 +22,7 @@
Marc.Schoenauer@polytechnique.fr
mak@dhi.dk
CVS Info: $Date: 2005-10-06 17:22:40 $ $Header: /home/nojhan/dev/eodev/eodev_cvs/eo/src/eoVector.h,v 1.17 2005-10-06 17:22:40 kuepper Exp $ $Author: kuepper $
CVS Info: $Date: 2006-12-02 11:36:29 $ $Header: /home/nojhan/dev/eodev/eodev_cvs/eo/src/eoVector.h,v 1.18 2006-12-02 11:36:29 kuepper Exp $ $Author: kuepper $
*/
//-----------------------------------------------------------------------------
@ -129,6 +129,7 @@ bool operator<(const eoVector<FitT, GeneType>& _eo1, const eoVector<FitT, GeneTy
{
return _eo1.operator<(_eo2);
}
template <class FitT, class GeneType>
bool operator>(const eoVector<FitT, GeneType>& _eo1, const eoVector<FitT, GeneType>& _eo2)
{