From 5cae3d9571544327c61004b20d56517b89d74b1d Mon Sep 17 00:00:00 2001 From: Casey Dahlin Date: Wed, 8 Oct 2008 17:15:57 -0400 Subject: Add parenthesis to expression in State#hash Minor clarification --- state.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'state.rb') 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_ -- cgit