Skip to content

Commit f0e359a

Browse files
committed
refactor: use abs instead of labs
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 6c2b370 commit f0e359a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/math/base/special/negalucas/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"libpath": [],
3838
"dependencies": [
3939
"@stdlib/math/base/napi/unary",
40-
"@stdlib/math/base/special/labs",
40+
"@stdlib/math/base/special/abs",
4141
"@stdlib/constants/float64/max-safe-nth-lucas",
4242
"@stdlib/math/base/assert/is-integer"
4343
]
@@ -53,7 +53,7 @@
5353
"libraries": [],
5454
"libpath": [],
5555
"dependencies": [
56-
"@stdlib/math/base/special/labs",
56+
"@stdlib/math/base/special/abs",
5757
"@stdlib/constants/float64/max-safe-nth-lucas",
5858
"@stdlib/math/base/assert/is-integer"
5959
]
@@ -69,7 +69,7 @@
6969
"libraries": [],
7070
"libpath": [],
7171
"dependencies": [
72-
"@stdlib/math/base/special/labs",
72+
"@stdlib/math/base/special/abs",
7373
"@stdlib/constants/float64/max-safe-nth-lucas",
7474
"@stdlib/math/base/assert/is-integer"
7575
]

lib/node_modules/@stdlib/math/base/special/negalucas/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include "stdlib/math/base/special/negalucas.h"
2020
#include "stdlib/math/base/assert/is_integer.h"
21-
#include "stdlib/math/base/special/labs.h"
21+
#include "stdlib/math/base/special/abs.h"
2222
#include "stdlib/constants/float64/max_safe_nth_lucas.h"
2323
#include <stdint.h>
2424
#include <stdlib.h>
@@ -118,8 +118,8 @@ static const int64_t negalucas_value[ 77 ] = {
118118
* // returns NaN
119119
*/
120120
double stdlib_base_negalucas( const double n ) {
121-
double an = stdlib_base_labs( n );
122-
if ( !stdlib_base_is_integer( n ) || n > 0 || an > STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_LUCAS ) {
121+
double an = stdlib_base_abs( n );
122+
if ( !stdlib_base_is_integer( n ) || n > 0.0 || an > STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_LUCAS ) {
123123
return 0.0 / 0.0; // NaN
124124
}
125125
return negalucas_value[ (size_t)an ];

0 commit comments

Comments
 (0)