[Swift-commit] r5886 - branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Thu Aug 2 17:47:22 CDT 2012


Author: hategan
Date: 2012-08-02 17:47:22 -0500 (Thu, 02 Aug 2012)
New Revision: 5886

Modified:
   branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
Log:
fixed @length

Modified: branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
===================================================================
--- branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2012-08-01 20:13:28 UTC (rev 5885)
+++ branches/release-0.93/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2012-08-02 22:47:22 UTC (rev 5886)
@@ -396,7 +396,9 @@
 	 */
 	public DSHandle swiftscript_length(VariableStack stack)
 	throws ExecutionException {
-	    Map<?, ?> n = (Map<?, ?>) PA_ARRAY.getValue(stack);
+	    AbstractDataNode array = (AbstractDataNode) PA_ARRAY.getValue(stack);
+	    array.waitFor();
+	    Map<?, ?> n = array.getArrayValue();
 	    return RootDataNode.newNode(Types.INT, Integer.valueOf(n.size()));
 	}
 




More information about the Swift-commit mailing list