Explicit cast double to int(removes compiler warnings).
authorIsaac Dooley <idooley2@illinois.edu>
Tue, 17 Mar 2009 22:31:27 +0000 (22:31 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Tue, 17 Mar 2009 22:31:27 +0000 (22:31 +0000)
src/ck-cp/controlPoints.C
src/ck-cp/controlPoints.ci

index 43a8667de15e2ab24c4c2717f0eea2d19f0ca2d4..061661776baade8be363e6430f6f2d70bc8f85f0 100644 (file)
@@ -1519,8 +1519,8 @@ int controlPoint2Pow(const char *name, int fine_granularity, int coarse_granular
   } 
   else {
 
-    int l1 = CmiLog2(fine_granularity);
-    int l2 = CmiLog2(coarse_granularity);
+    int l1 = (int)CmiLog2(fine_granularity);
+    int l2 = (int)CmiLog2(coarse_granularity);
   
     if (l1 > l2){
       int tmp;
index c14a4c81a15a9dfe7c48e23fd36b7b8a036aaeef..76f067303fa08ec9fef69168cad3e2b5eb7804c8 100644 (file)
@@ -4,9 +4,7 @@ module ControlPoints {
   readonly int random_seed;
 
 
-
-  initcall void registerIdleTimeReduction(void);       
-
+  initproc void registerIdleTimeReduction(void);       
 
 
   mainchare controlPointMain {