(VirusShiftMutation::operator()): Fix test for i>1.
This makes t-MGE1bit pass on x86_64 using GCC.
This commit is contained in:
parent
037ce32d90
commit
3533d8addb
3 changed files with 14 additions and 2 deletions
11
eo/contrib/MGE/ChangeLog
Normal file
11
eo/contrib/MGE/ChangeLog
Normal 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:
|
||||||
|
|
@ -110,7 +110,7 @@ public:
|
||||||
_chrom.virusBitSet(i, false);
|
_chrom.virusBitSet(i, false);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( i - 1 > 0 ) {
|
if ( i > 1 ) {
|
||||||
_chrom.virusBitSet(i-1,true);
|
_chrom.virusBitSet(i-1,true);
|
||||||
_chrom.virusBitSet(i, false);
|
_chrom.virusBitSet(i, false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
Marc.Schoenauer@polytechnique.fr
|
Marc.Schoenauer@polytechnique.fr
|
||||||
mak@dhi.dk
|
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);
|
return _eo1.operator<(_eo2);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class FitT, class GeneType>
|
template <class FitT, class GeneType>
|
||||||
bool operator>(const eoVector<FitT, GeneType>& _eo1, const eoVector<FitT, GeneType>& _eo2)
|
bool operator>(const eoVector<FitT, GeneType>& _eo1, const eoVector<FitT, GeneType>& _eo2)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Reference in a new issue