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

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Mon Feb 20 14:04:48 CST 2012


Author: hategan
Date: 2012-02-20 14:04:48 -0600 (Mon, 20 Feb 2012)
New Revision: 5658

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-02-20 20:01:04 UTC (rev 5657)
+++ trunk/src/org/griphyn/vdl/karajan/lib/swiftscript/Misc.java	2012-02-20 20:04:48 UTC (rev 5658)
@@ -418,7 +418,7 @@
 	 */
 	public DSHandle swiftscript_length(VariableStack stack)
 	throws ExecutionException {
-	    Map<?, ?> n = (Map<?, ?>) PA_ARRAY.getValue(stack);
+	    Map<?, ?> n = PA_ARRAY.getRawValue(stack).getArrayValue();
 	    return new RootDataNode(Types.INT, Integer.valueOf(n.size()));
 	}
 




More information about the Swift-commit mailing list