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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Thu Aug 4 19:18:28 CDT 2011


Author: hategan
Date: 2011-08-04 19:18:28 -0500 (Thu, 04 Aug 2011)
New Revision: 4946

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ExtractInt.java
Log:
extractint should return an int not a float

Modified: trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ExtractInt.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ExtractInt.java	2011-08-04 21:30:54 UTC (rev 4945)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/ExtractInt.java	2011-08-05 00:18:28 UTC (rev 4946)
@@ -31,8 +31,7 @@
 			BufferedReader breader = new BufferedReader(freader);
 			String str = breader.readLine();
 			freader.close();
-			Double i = new Double(str);
-			DSHandle result = new RootDataNode(Types.FLOAT, i);
+			DSHandle result = new RootDataNode(Types.INT, Integer.parseInt(str));
 			int provid = VDLFunction.nextProvenanceID();
 			VDLFunction.logProvenanceResult(provid, result, "extractint");
 			VDLFunction.logProvenanceParameter(provid, handle, "filename");




More information about the Swift-commit mailing list