diff options
author | Jan Huwald <jh@sotun.de> | 2013-06-25 12:41:16 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2013-06-25 12:41:16 (GMT) |
commit | c45681cfcddb27f7c416ec4328eece7bf9779031 (patch) | |
tree | 3bdc0b51a4826c66441857d3600d3148a2fcda32 | |
parent | 13dcafc1853d206f41498933072f16ea37b58189 (diff) |
fix computation of maxState
-rw-r--r-- | cacount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cacount.cpp b/cacount.cpp index ef5b6e6..27e25ae 100644 --- a/cacount.cpp +++ b/cacount.cpp @@ -28,7 +28,7 @@ typedef typename boost::uint_t<logState >::least State; typedef typename boost::uint_t<logState + 1>::least StateIter; const StateIter numState = (StateIter) 1 << logState; const StateIter nullState = ~((StateIter) 0); -const State maxState = ~((State) 0); +const State maxState = State(numState - 1); bitset<8> rule(110); |