[Avida-SVN] r3022 - development/source/cpu
blwalker at myxo.css.msu.edu
blwalker at myxo.css.msu.edu
Thu Dec 11 19:17:56 PST 2008
Author: blwalker
Date: 2008-12-11 22:17:56 -0500 (Thu, 11 Dec 2008)
New Revision: 3022
Modified:
development/source/cpu/cHardwareCPU.cc
Log:
Changing collect instruction(s) to do nothing when there are no resources defined -- previously the instruction(s) would fail, returning false.
Modified: development/source/cpu/cHardwareCPU.cc
===================================================================
--- development/source/cpu/cHardwareCPU.cc 2008-12-12 02:33:02 UTC (rev 3021)
+++ development/source/cpu/cHardwareCPU.cc 2008-12-12 03:17:56 UTC (rev 3022)
@@ -3343,7 +3343,7 @@
int start_bin, end_bin, bin_used;
bool finite_resources_exist = FindModifiedResource(start_bin, end_bin);
- if(!finite_resources_exist) {return false;}
+ if(!finite_resources_exist) {return true;}
if(start_bin == end_bin) // resource completely specified
{bin_used = start_bin;}
More information about the Avida-cvs
mailing list