aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/version.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/version.rb b/Library/Homebrew/version.rb
index 85ff09ab1..480f23521 100644
--- a/Library/Homebrew/version.rb
+++ b/Library/Homebrew/version.rb
@@ -30,6 +30,8 @@ class Version
def <=>(other)
case other
+ when NullToken
+ 0
when NumericToken
other.value == 0 ? 0 : -1
when AlphaToken, BetaToken, RCToken