summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-10-08 17:15:57 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-10-08 17:15:57 -0400
commit5cae3d9571544327c61004b20d56517b89d74b1d (patch)
tree53daf99d9a6ce9bd8e78461a7d1b08fec1934e4b /state.rb
parentf1b64ee8e011494c3d63af9f7c8fa6fb7413e0fb (diff)
downloadupstate-5cae3d9571544327c61004b20d56517b89d74b1d.tar.gz
upstate-5cae3d9571544327c61004b20d56517b89d74b1d.tar.xz
upstate-5cae3d9571544327c61004b20d56517b89d74b1d.zip
Add parenthesis to expression in State#hash
Minor clarification
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.rb b/state.rb
index 5ebedea..e47573f 100644
--- a/state.rb
+++ b/state.rb
@@ -183,7 +183,7 @@ class State
# Our ID is a function of our class and deps
def hash
- self.class.hash ** 2 + self.params.sort.hash % 0x4000000000000000
+ (self.class.hash ** 2 + self.params.sort.hash) % 0x4000000000000000
end
# A state is rooted in a set of states if any state in the set which it _may_