[Swift-commit] r4935 - trunk/src/org/griphyn/vdl/karajan/lib

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Wed Aug 3 00:27:09 CDT 2011


Author: hategan
Date: 2011-08-03 00:27:08 -0500 (Wed, 03 Aug 2011)
New Revision: 4935

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java
Log:
ints are Integers now

Modified: trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java	2011-08-03 00:17:44 UTC (rev 4934)
+++ trunk/src/org/griphyn/vdl/karajan/lib/InfiniteCountingWhile.java	2011-08-03 05:27:08 UTC (rev 4935)
@@ -33,7 +33,7 @@
 		stack.setVar("#iteratethread", tc);
 		stack.setVar("#thread", tc.split(0));
 		stack.setVar(COUNTER_NAME, Collections.singletonList(0));
-		stack.setVar((String) VAR.getStatic(this), new RootDataNode(Types.INT, 0.0));
+		stack.setVar((String) VAR.getStatic(this), new RootDataNode(Types.INT, 0));
 		super.pre(stack);
 	}
 
@@ -48,7 +48,7 @@
 			return;
 		}
 		FlowElement fn = null;
-
+		
 		if (index == elementCount() - 1) {
 		    // the condition is always compiled as the last thing in the loop
 		    // but the increment needs to happen before the condition is
@@ -60,7 +60,7 @@
             ThreadingContext tc = (ThreadingContext)stack.getVar("#iteratethread");
             stack.setVar("#thread", tc.split(i));
             stack.setVar(COUNTER_NAME, Collections.singletonList(i));
-            stack.setVar((String) VAR.getStatic(this), new RootDataNode(Types.INT, Double.valueOf(i)));
+            stack.setVar((String) VAR.getStatic(this), new RootDataNode(Types.INT, i));
 		}
 		if (index >= elementCount()) {
 			// starting new iteration




More information about the Swift-commit mailing list