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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Tue Apr 3 17:18:58 CDT 2012


Author: hategan
Date: 2012-04-03 17:18:58 -0500 (Tue, 03 Apr 2012)
New Revision: 5742

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
Log:
fixed length()

Modified: trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2012-04-03 07:14:28 UTC (rev 5741)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2012-04-03 22:18:58 UTC (rev 5742)
@@ -437,7 +437,9 @@
 	 */
 	public DSHandle swiftscript_length(VariableStack stack)
 	throws ExecutionException {
-	    Map<?, ?> n = PA_ARRAY.getRawValue(stack).getArrayValue();
+	    AbstractDataNode array = (AbstractDataNode) PA_ARRAY.getRawValue(stack);
+	    array.waitFor();
+	    Map<?, ?> n = array.getArrayValue();
 	    return new RootDataNode(Types.INT, Integer.valueOf(n.size()));
 	}
 




More information about the Swift-commit mailing list