Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Query] Iterable.any() was broken. It's consuming an extra value, whi…

…ch disappears when we read the stream. Make this problem go away when we don't have a predicate, and put in a TODO note to properly fix it later
  • Loading branch information...
commit dd456833bc856b133ca384eea91330ccc7b7cb0f 1 parent d1d391f
@Whiteknight authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/query/Iterable.winxed
4 src/query/Iterable.winxed
@@ -337,8 +337,10 @@ class Rosella.Query.Iterable : Rosella.IteratorBase
if (!self.has_more())
return false;
- :(var v, int m) = self.next_and_more();
if (f != null) {
+ // TODO: This is broken. We're consuming v and not saving it. Next
+ // time we try to read, we're going to be missing a value.
+ :(var v, int m) = self.next_and_more();
if (f(v))
return true;
while (m == true) {
Please sign in to comment.
Something went wrong with that request. Please try again.