From c45681cfcddb27f7c416ec4328eece7bf9779031 Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Tue, 25 Jun 2013 14:41:16 +0200 Subject: fix computation of maxState 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::least State; typedef typename boost::uint_t::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); -- cgit v0.10.1