[Avida-SVN] r2180 - branches/dkdev/source/main
dknoester at myxo.css.msu.edu
dknoester at myxo.css.msu.edu
Mon Nov 5 05:41:30 PST 2007
Author: dknoester
Date: 2007-11-05 08:41:30 -0500 (Mon, 05 Nov 2007)
New Revision: 2180
Modified:
branches/dkdev/source/main/cGermline.h
Log:
Off-by-1 germline merit window size error.
Modified: branches/dkdev/source/main/cGermline.h
===================================================================
--- branches/dkdev/source/main/cGermline.h 2007-11-03 14:13:14 UTC (rev 2179)
+++ branches/dkdev/source/main/cGermline.h 2007-11-05 13:41:30 UTC (rev 2180)
@@ -21,7 +21,7 @@
void UpdateMerit(double v) { UpdateWindowedMerit(v, 1); }
void UpdateWindowedMerit(double v, int window_size) {
assert(window_size >= 1);
- if(_merit_window.size() > window_size) {
+ if(_merit_window.size() >= window_size) {
_merit_window.pop_front();
}
_merit_window.push_back(v);
More information about the Avida-cvs
mailing list