Minor fix in kotlin-stdlib-gen

This change was forgotten in e3fffe2
This commit is contained in:
Alexander Udalov
2014-03-28 22:45:35 +04:00
parent d75a20bd7c
commit 09a8e284e5
@@ -52,7 +52,7 @@ fun filtering(): List<GenericFunction> {
var count = 0
val list = ArrayList<T>(n)
for (item in this) {
if (count++ >= n)
if (count++ == n)
break
list.add(item)
}