Skip to content

Commit a4e3214

Browse files
authored
fabs -> fabsl
Fixes two calls that were using `fabs` on a `long double` argument rather than `fabsl`, which looks like it is doing an unintentional truncation to `double` precision.
1 parent 9e65430 commit a4e3214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/rotg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ void CNAME(FLOAT *DA, FLOAT *DB, FLOAT *C, FLOAT *S){
2222
long double s;
2323
long double r, roe, z;
2424

25-
long double ada = fabs(da);
26-
long double adb = fabs(db);
25+
long double ada = fabsl(da);
26+
long double adb = fabsl(db);
2727
long double scale = ada + adb;
2828

2929
#ifndef CBLAS

0 commit comments

Comments
 (0)