[Avida-SVN] r3240 - development/source/cpu

dk at myxo.css.msu.edu dk at myxo.css.msu.edu
Mon May 18 13:28:52 PDT 2009


Author: dk
Date: 2009-05-18 16:28:51 -0400 (Mon, 18 May 2009)
New Revision: 3240

Modified:
   development/source/cpu/cHardwareCPU.cc
Log:
signed / unsigned clashes

Modified: development/source/cpu/cHardwareCPU.cc
===================================================================
--- development/source/cpu/cHardwareCPU.cc	2009-05-18 20:15:08 UTC (rev 3239)
+++ development/source/cpu/cHardwareCPU.cc	2009-05-18 20:28:51 UTC (rev 3240)
@@ -8322,7 +8322,7 @@
 			
 			// sometimes the donation will fail. 
 			// get the probability of failure
-			int prob_fail = m_world->GetConfig().DONATION_FAILURE_PERCENT.Get(); 
+			unsigned int prob_fail = m_world->GetConfig().DONATION_FAILURE_PERCENT.Get(); 
 			unsigned int rand_num = m_world->GetRandom().GetUInt(0, 100); 
 			// neighbor donates to organism.
 			if (rand_num < prob_fail) { 
@@ -8365,7 +8365,7 @@
 			
 			// sometimes the donation will fail. 
 			// get the probability of failure
-			int prob_fail = m_world->GetConfig().DONATION_FAILURE_PERCENT.Get(); 
+			unsigned int prob_fail = m_world->GetConfig().DONATION_FAILURE_PERCENT.Get(); 
 			unsigned int rand_num = m_world->GetRandom().GetUInt(0, 100); 
 			// neighbor donates to organism.
 			if (rand_num < prob_fail) { 




More information about the Avida-cvs mailing list