VC warning fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,9 +75,9 @@ public:
|
|||||||
bool LifeCellBox::IsAlive(int dx, int dy) const
|
bool LifeCellBox::IsAlive(int dx, int dy) const
|
||||||
{
|
{
|
||||||
if (dy > 3)
|
if (dy > 3)
|
||||||
return (bool)(m_live2 & 1 << ((dy - 4) * 8 + dx));
|
return (m_live2 & 1 << ((dy - 4) * 8 + dx)) ? true : false ;
|
||||||
else
|
else
|
||||||
return (bool)(m_live1 & 1 << ((dy) * 8 + dx));
|
return (m_live1 & 1 << ((dy) * 8 + dx)) ? true : false ;
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetCell:
|
// SetCell:
|
||||||
|
Reference in New Issue
Block a user