[Avida-SVN] r2591 - development/source/analyze

kaben at myxo.css.msu.edu kaben at myxo.css.msu.edu
Thu May 22 12:53:21 PDT 2008


Author: kaben
Date: 2008-05-22 15:53:21 -0400 (Thu, 22 May 2008)
New Revision: 2591

Modified:
   development/source/analyze/cAnalyzeTreeStats_Gamma.cc
Log:
Another fix to Gabe's gamma statistic. This uses 64-bit unsigned ints. This works on our machines, but may not work on Gabe's machines. Will need to verify with Gabe whether it works.


Modified: development/source/analyze/cAnalyzeTreeStats_Gamma.cc
===================================================================
--- development/source/analyze/cAnalyzeTreeStats_Gamma.cc	2008-05-22 16:46:40 UTC (rev 2590)
+++ development/source/analyze/cAnalyzeTreeStats_Gamma.cc	2008-05-22 19:53:21 UTC (rev 2591)
@@ -98,14 +98,14 @@
     return;
   }
 
-  long T = 0;
+  unsigned long long T = 0;
   for(int j = 2; j <= n; j++) { T += j*m_g[j]; }
   
   // so: exterior summation
-  long so = 0;
+  unsigned long long so = 0;
   for(int i = 2; i <= n-1; i++) {
     // si: interior summation
-    long si = 1;
+    unsigned long long si = 1;
     for(int k = 2; k <= i; k++) { si += k*m_g[k]; }
     so += si;
   }




More information about the Avida-cvs mailing list