]> git.saurik.com Git - wxWidgets.git/commitdiff
VC warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Thu, 15 Jul 2004 06:13:25 +0000 (06:13 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Thu, 15 Jul 2004 06:13:25 +0000 (06:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/life/game.cpp

index 52c511158406d890c1299cd11f7f440a96783416..93bc26c418bd2c260e6c776eed1065abc69ca486 100644 (file)
@@ -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: