[Avida-SVN] r3318 - development/source/main

hjg at myxo.css.msu.edu hjg at myxo.css.msu.edu
Fri Jun 12 12:37:02 PDT 2009


Author: hjg
Date: 2009-06-12 15:37:02 -0400 (Fri, 12 Jun 2009)
New Revision: 3318

Modified:
   development/source/main/cTaskLib.cc
Log:
minor fix to get rid of int to double conversion warning.

Modified: development/source/main/cTaskLib.cc
===================================================================
--- development/source/main/cTaskLib.cc	2009-06-12 19:28:02 UTC (rev 3317)
+++ development/source/main/cTaskLib.cc	2009-06-12 19:37:02 UTC (rev 3318)
@@ -3449,7 +3449,7 @@
 double cTaskLib::Task_FormSpatialGroupWithID(cTaskContext& ctx) const
 {
 	double t = (double) ctx.GetTaskEntry()->GetArguments().GetInt(0);
-	int des_group_id = (double) ctx.GetTaskEntry()->GetArguments().GetInt(1);
+	int des_group_id = ctx.GetTaskEntry()->GetArguments().GetInt(1);
 
 	double reward = 0.0;
 	int group_id = -1; 
@@ -3475,10 +3475,6 @@
 		
 	}
 	
-	if (reward < 0) 
-	{
-		int y = 0;
-	}
 
 	return reward;
 }




More information about the Avida-cvs mailing list