Commit 111468dc authored by Stefan Behnel's avatar Stefan Behnel

Fix warning about "comparison between signed and unsigned" in example and make...

Fix warning about "comparison between signed and unsigned" in example and make it fully C89 compatible.
parent 0efb1066
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
void multiply_by_10_in_C(double arr[], unsigned int n) void multiply_by_10_in_C(double arr[], unsigned int n)
{ {
for (int i = 0; i < n; i++) { unsigned int i;
for (i = 0; i < n; i++) {
arr[i] *= 10; arr[i] *= 10;
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment