fix a bug which is converting from for(;;) to while()
This commit is contained in:
committed by
Pavel V. Talanov
parent
55c00b08e7
commit
8c66f744b4
@@ -0,0 +1 @@
|
||||
for (init(); ; update()) body();
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
init()
|
||||
while (true)
|
||||
{
|
||||
body()
|
||||
{
|
||||
update()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
for (; condition() ; update()) body();
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
while (condition())
|
||||
{
|
||||
body()
|
||||
{
|
||||
update()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
for (init(); condition(); ) body();
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
init()
|
||||
while (condition())
|
||||
{
|
||||
body()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user