aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-03-17 21:37:03 -0400
committerJack Nagel2015-03-17 21:37:03 -0400
commit9b7b62bf24ccec530920d64d5632d1d55366b360 (patch)
tree266230eb2a28977856214db2d48931773c887f63 /Library
parent21d478b2c84276067398f649752efc3db5cfcbf6 (diff)
downloadhomebrew-9b7b62bf24ccec530920d64d5632d1d55366b360.tar.bz2
Fix NullToken equality
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