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:
Włodzimierz Skiba
2004-07-15 06:13:25 +00:00
parent bbde2e2999
commit 4cf8ef088c

View File

@@ -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: