Fix analyzer warnings in pkg/glob.
This releases glob 1.0.1.
R=rnystrom@google.com
BUG=21065
Review URL: https://codereview.chromium.org//603713002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40641 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..2500c62
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,3 @@
+## 1.0.0+1
+
+* Fix several analyzer warnings.
diff --git a/lib/src/ast.dart b/lib/src/ast.dart
index 380aa51..dbb76e6 100644
--- a/lib/src/ast.dart
+++ b/lib/src/ast.dart
@@ -298,8 +298,8 @@
bool operator==(Object other) {
if (other is! RangeNode) return false;
- if (other.negated != negated) return false;
- return const SetEquality().equals(ranges, other.ranges);
+ if ((other as RangeNode).negated != negated) return false;
+ return const SetEquality().equals(ranges, (other as RangeNode).ranges);
}
int get hashCode => (negated ? 1 : 3) * const SetEquality().hash(ranges);
diff --git a/pubspec.yaml b/pubspec.yaml
index fb8e5e8..0a2254c 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: glob
-version: 1.0.0
+version: 1.0.1-dev
author: "Dart Team <misc@dartlang.org>"
homepage: http://www.dartlang.org
description: Bash-style filename globbing.