Skip to content

Commit

Permalink
Fix bug in list_differ (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
matanlurey authored Nov 17, 2016
1 parent f85fdf2 commit 5d9eec7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.15.0+2

* Fix a bug in `ListDiffer` that caused a `RangeError`

## 0.15.0+1

* Fix analysis errors caused via missing `/*<E>*/` syntax in `0.15.0`
Expand Down
2 changes: 1 addition & 1 deletion lib/src/differs/list_differ.dart
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ List<ListChangeRecord/*<E>*/ > _calcSplices/*<E>*/(
}

if (currentStart == currentEnd) {
final spliceRemoved = old.sublist(oldStart, oldStart + oldEnd);
final spliceRemoved = old.sublist(oldStart, oldStart + (oldEnd - oldStart));
return [
new ListChangeRecord/*<E>*/ .remove(
current,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: observable
version: 0.15.0+1
version: 0.15.0+2
author: Dart Team <[email protected]>
description: Support for marking objects as observable
homepage: https://github.com/dart-lang/observable
Expand Down

0 comments on commit 5d9eec7

Please sign in to comment.