diff options
-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); |