Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix listification of degenerate captures
  • Loading branch information
sorear committed Dec 28, 2010
1 parent 396dce8 commit c1a6e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cursor.cs
Expand Up @@ -492,7 +492,7 @@ public Cursor(Cursor parent, string method, int from, int to)
DynObject l = new DynObject(Kernel.ListMO);
l.slots[0 /*items*/] = caps;
l.slots[1 /*rest*/ ] = new VarDeque();
return Kernel.NewRWListVar(l);
return Kernel.NewROScalar(l);
} else {
return caps.Count() != 0 ? caps[0] :
Kernel.NewROScalar(Kernel.AnyP);
Expand Down

0 comments on commit c1a6e23

Please sign in to comment.