From 185a67c9d17b2b453f7b5b3d54ee6911a45186a1 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Mon, 14 Mar 2022 13:26:48 +0100 Subject: [PATCH] Typo fix --- lib/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/math.c b/lib/math.c index 5268663..58c09f4 100644 --- a/lib/math.c +++ b/lib/math.c @@ -13,7 +13,7 @@ long square(uint num) { long sum = num - 1; while(num > 0) { sum += num*2; - sum--; + num--; } return sum + 1; }