Skip to content

Commit 4df1f8c

Browse files
committed
fix: correct imports to use max-nth-double-factorial constant
--- 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: passed - 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 efef831 commit 4df1f8c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/node_modules/@stdlib/math/base/special/factorial2/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
2424
var isInteger = require( '@stdlib/math/base/assert/is-integer' );
2525
var isEven = require( '@stdlib/math/base/assert/is-even' );
2626
var PINF = require( '@stdlib/constants/float64/pinf' );
27-
var FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL = require( '@stdlib/constants/float64/max-safe-nth-double-factorial' ); // eslint-disable-line id-length
27+
var FLOAT64_MAX_NTH_DOUBLE_FACTORIAL = require( '@stdlib/constants/float64/max-nth-double-factorial' ); // eslint-disable-line id-length
2828

2929

3030
// MAIN //
@@ -59,7 +59,7 @@ function factorial2( n ) {
5959
if ( isnan( n ) ) {
6060
return NaN;
6161
}
62-
if ( n > FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL ) {
62+
if ( n > FLOAT64_MAX_NTH_DOUBLE_FACTORIAL ) {
6363
return PINF;
6464
}
6565
if ( n < 0 || isInteger( n ) === false ) {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@stdlib/math/base/assert/is-integer",
4242
"@stdlib/math/base/assert/is-even",
4343
"@stdlib/constants/float64/pinf",
44-
"@stdlib/constants/float64/max-safe-nth-double-factorial"
44+
"@stdlib/constants/float64/max-nth-double-factorial"
4545
]
4646
},
4747
{
@@ -59,7 +59,7 @@
5959
"@stdlib/math/base/assert/is-integer",
6060
"@stdlib/math/base/assert/is-even",
6161
"@stdlib/constants/float64/pinf",
62-
"@stdlib/constants/float64/max-safe-nth-double-factorial"
62+
"@stdlib/constants/float64/max-nth-double-factorial"
6363
]
6464
},
6565
{
@@ -77,7 +77,7 @@
7777
"@stdlib/math/base/assert/is-integer",
7878
"@stdlib/math/base/assert/is-even",
7979
"@stdlib/constants/float64/pinf",
80-
"@stdlib/constants/float64/max-safe-nth-double-factorial"
80+
"@stdlib/constants/float64/max-nth-double-factorial"
8181
]
8282
}
8383
]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "stdlib/math/base/assert/is_integer.h"
2222
#include "stdlib/math/base/assert/is_even.h"
2323
#include "stdlib/constants/float64/pinf.h"
24-
#include "stdlib/constants/float64/max_safe_nth_double_factorial.h"
24+
#include "stdlib/constants/float64/max_nth_double_factorial.h"
2525
#include <stdint.h>
2626

2727
/**
@@ -42,7 +42,7 @@ double stdlib_base_factorial2( const int32_t n ) {
4242
if ( stdlib_base_is_nan( n ) ) {
4343
return 0.0/0.0; // NaN
4444
}
45-
if ( n > STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_DOUBLE_FACTORIAL ) {
45+
if ( n > STDLIB_CONSTANT_FLOAT64_MAX_NTH_DOUBLE_FACTORIAL ) {
4646
return STDLIB_CONSTANT_FLOAT64_PINF;
4747
}
4848
if ( n < 0 || !stdlib_base_is_integer( n ) ) {

0 commit comments

Comments
 (0)