aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/fib.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fib.c')
-rw-r--r--test/fib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fib.c b/test/fib.c
index 0c02171..806b416 100644
--- a/test/fib.c
+++ b/test/fib.c
@@ -1,6 +1,6 @@
unsigned fib(unsigned x) {
unsigned r = 0, q = 1;
- while (x-- > 1) {
+ for (; x > 1; --x) {
unsigned s = r + q;
r = q;
q = s;