aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/fib.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-09-09 10:46:18 +0200
committerlemon <lsof@mailbox.org>2025-09-09 10:46:18 +0200
commit3bac8a6bc4f04ed9d302896264809b191477e11b (patch)
tree1d82dcf2f92d84ba214c1aa0466ab87c8ccadcba /test/fib.c
parente043811980db560fc2507bb53b644e54c80527dc (diff)
fixes, delnops
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;