aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-12-25 09:19:09 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-12-25 09:19:09 +0100
commit60858697b199d089ef78451d51063743f9b6f6d1 (patch)
tree1368acb0045a4527a109a56c3f68cdca096f8b3c
parente1e7a4b8e86087da79b86ba2ea394785346396db (diff)
downloadaoc-60858697b199d089ef78451d51063743f9b6f6d1.tar.gz
aoc-60858697b199d089ef78451d51063743f9b6f6d1.zip
Fixed a whoopsie
-rw-r--r--2023/24/24b.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/2023/24/24b.c b/2023/24/24b.c
index 4881099..2dab176 100644
--- a/2023/24/24b.c
+++ b/2023/24/24b.c
@@ -62,8 +62,8 @@ bool solvesystem(double A[D][D], double C[D], int d, double *X) {
62 int imax; 62 int imax;
63 double maxi = 0.0; 63 double maxi = 0.0;
64 for (int j = i; j < d; j++) { 64 for (int j = i; j < d; j++) {
65 if (A[j][i] > maxi) { 65 if (ABS(A[j][i]) > maxi) {
66 maxi = A[j][i]; 66 maxi = ABS(A[j][i]);
67 imax = j; 67 imax = j;
68 } 68 }
69 } 69 }

Generated with cgit - Back to sebastiano.tronto.net