| Index: sdk/lib/_internal/pub/lib/src/version.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/version.dart b/sdk/lib/_internal/pub/lib/src/version.dart
|
| index 0d25c735e0767b08201397d6e867e3f03dcfa8ca..969d268039b972fece4d1b6d858d46f3203bb7ca 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/version.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/version.dart
|
| @@ -172,8 +172,8 @@ class Version implements Comparable<Version>, VersionConstraint {
|
| if (aPart == null) return -1;
|
| if (bPart == null) return 1;
|
|
|
| - if (aPart is int) {
|
| - if (bPart is int) {
|
| + if (aPart is num) {
|
| + if (bPart is num) {
|
| // Compare two numbers.
|
| return aPart.compareTo(bPart);
|
| } else {
|
| @@ -181,7 +181,7 @@ class Version implements Comparable<Version>, VersionConstraint {
|
| return -1;
|
| }
|
| } else {
|
| - if (bPart is int) {
|
| + if (bPart is num) {
|
| // Strings come after numbers.
|
| return 1;
|
| } else {
|
|
|