Skip to content

Commit e174298

Browse files
LouisCADqwwdfsad
authored andcommitted
Fix _size not incremented in CopyOnWriteList add (#1308)
FIxes #1307
1 parent cd5ac0b commit e174298

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kotlinx-coroutines-core/native/src/internal/CopyOnWriteList.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ internal class CopyOnWriteList<E>(private var array: Array<Any?> = arrayOfNulls(
3232
startIndex = index,
3333
endIndex = _size + 1
3434
)
35+
++_size
3536
array = update
3637
}
3738

0 commit comments

Comments
 (0)