mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Another tiny update to the coding standard just to make a point a little clearer.
This commit is contained in:
@@ -2050,9 +2050,12 @@ ptr = (FAR struct somestruct_s *)value;
|
||||
|
||||
int e = c + d;
|
||||
|
||||
for (int i = 0; i < b; i++)
|
||||
for (int i = 0; i < a; i++)
|
||||
{
|
||||
e += d;
|
||||
for (int j = 0; j < b; j++)
|
||||
{
|
||||
e += j * d;
|
||||
}
|
||||
}
|
||||
|
||||
return e / a;
|
||||
@@ -2073,9 +2076,14 @@ ptr = (FAR struct somestruct_s *)value;
|
||||
d = b;
|
||||
e = c + d;
|
||||
|
||||
for (i = 0; i < b; i++)
|
||||
for (i = 0; i < a; i++)
|
||||
{
|
||||
e += d;
|
||||
int j;
|
||||
|
||||
for (j = 0; j < b; j++)
|
||||
{
|
||||
e += j * d;
|
||||
}
|
||||
}
|
||||
|
||||
return e / a;
|
||||
|
||||
Reference in New Issue
Block a user