summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sle.c b/src/sle.c
index 328382a..aca65e8 100644
--- a/src/sle.c
+++ b/src/sle.c
@@ -19,7 +19,7 @@ int sle_solve(double *a, size_t n, double *x) {
max = fabs(a[col*k + k]);
index = k;
for (i = k + 1; i < n; i++) {
- t = abs(a[col * i + k]);
+ t = fabs(a[col * i + k]);
if (t > max) {
max = t;
index = i;