aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-12 17:33:07 -0600
committerJack Nagel2014-11-12 17:33:58 -0600
commit39cd94193457696c3aea9b4047f0258ff0ccea27 (patch)
treec6771e22dadc248aeda6dd9dc7881eb85377246b /Library
parent83bea4d30b76a0ba2e5079b72d0e0ef259cd5e81 (diff)
downloadhomebrew-39cd94193457696c3aea9b4047f0258ff0ccea27.tar.bz2
Don't allocate arrays in Requirement#hash
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/requirement.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/requirement.rb b/Library/Homebrew/requirement.rb
index f665bcc2c..517c9c92a 100644
--- a/Library/Homebrew/requirement.rb
+++ b/Library/Homebrew/requirement.rb
@@ -80,7 +80,7 @@ class Requirement
end
def hash
- [name, *tags].hash
+ name.hash ^ tags.hash
end
def inspect