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:
parent
bbde2e2999
commit
4cf8ef088c
1 changed files with 2 additions and 2 deletions
|
|
@ -75,9 +75,9 @@ public:
|
|||
bool LifeCellBox::IsAlive(int dx, int dy) const
|
||||
{
|
||||
if (dy > 3)
|
||||
return (bool)(m_live2 & 1 << ((dy - 4) * 8 + dx));
|
||||
return (m_live2 & 1 << ((dy - 4) * 8 + dx)) ? true : false ;
|
||||
else
|
||||
return (bool)(m_live1 & 1 << ((dy) * 8 + dx));
|
||||
return (m_live1 & 1 << ((dy) * 8 + dx)) ? true : false ;
|
||||
}
|
||||
|
||||
// SetCell:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue