[Swift-commit] r5887 - branches/release-0.93.1/src/org/griphyn/vdl/karajan/lib/swiftscript
hategan at ci.uchicago.edu
hategan at ci.uchicago.edu
Thu Aug 2 17:47:42 CDT 2012
Author: hategan
Date: 2012-08-02 17:47:42 -0500 (Thu, 02 Aug 2012)
New Revision: 5887
Modified:
branches/release-0.93.1/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
Log:
fixed @length
Modified: branches/release-0.93.1/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java
===================================================================
--- branches/release-0.93.1/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java 2012-08-02 22:47:22 UTC (rev 5886)
+++ branches/release-0.93.1/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java 2012-08-02 22:47:42 UTC (rev 5887)
@@ -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