Skip to content
Browse files

Tuple#subary should accept ends up to and including length.

  • Loading branch information...
1 parent a5f87d2 commit 45d5beb5288b61c765214f2f14bce89a6d1add5b @stormbrew committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/tuple.cpp
View
2 ext/tuple.cpp
@@ -27,7 +27,7 @@ namespace Channel9
const Tuple *self = ptr<Tuple>(oself);
size_t first = (size_t)msg.args()[0].machine_num,
last = (size_t)msg.args()[1].machine_num;
- if (first >= 0 && last >= 0 && first <= last && first < self->size() && last < self->size())
+ if (first >= 0 && last >= 0 && first <= last && first <= self->size() && last <= self->size())
{
return channel_send(cenv, ctx, value(sub_tuple(self, first, last - first)), Nil);
}

0 comments on commit 45d5beb

Please sign in to comment.
Something went wrong with that request. Please try again.