fixed VC6 compilation error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2000-02-09 20:51:09 +00:00
parent d14f4fec2d
commit 4ac99f4bbe

View File

@@ -658,7 +658,8 @@ bool Life::NextTic()
}
// inner cells
for (int i = 1; i <= 3; i++)
int i;
for (i = 1; i <= 3; i++)
{
t1 = ((c->m_live1) >> (i * 8)) & 0x000000ff;
if (t1)
@@ -668,7 +669,7 @@ bool Life::NextTic()
c->m_on[i + 1] += g_tab1[t1];
}
}
for (int i = 0; i <= 2; i++)
for (i = 0; i <= 2; i++)
{
t1 = ((c->m_live2) >> (i * 8)) & 0x000000ff;
if (t1)
@@ -698,7 +699,8 @@ bool Life::NextTic()
t1 = c->m_live1;
c->m_old1 = t1;
t2 = 0;
for (int i = 0; i <= 3; i++)
int i;
for (i = 0; i <= 3; i++)
{
t3 = c->m_on[i];
if (!t3)
@@ -729,7 +731,7 @@ bool Life::NextTic()
t1 = c->m_live2;
c->m_old2 = t1;
t2 = 0;
for (int i = 4; i <= 7; i++)
for (i = 4; i <= 7; i++)
{
t3 = c->m_on[i];
if (!t3)