diff --git a/Documentation/NuttXCCodingStandard.html b/Documentation/NuttXCCodingStandard.html index 56db45c4e4..ffa725a805 100644 --- a/Documentation/NuttXCCodingStandard.html +++ b/Documentation/NuttXCCodingStandard.html @@ -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;