Skip to content

Commit a4194cc

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 8996360 commit a4194cc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var isIntegerf = require( '@stdlib/math/base/assert/is-integerf' );
2525
var isEvenf = require( '@stdlib/math/base/assert/is-evenf' );
2626
var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
2727
var PINF = require( '@stdlib/constants/float32/pinf' );
28-
var FLOAT32_MAX_SAFE_NTH_DOUBLE_FACTORIAL = require( '@stdlib/constants/float32/max-safe-nth-double-factorial' ); // eslint-disable-line id-length
28+
var FLOAT32_MAX_NTH_DOUBLE_FACTORIAL = require( '@stdlib/constants/float32/max-nth-double-factorial' ); // eslint-disable-line id-length
2929

3030

3131
// MAIN //
@@ -65,7 +65,7 @@ function factorial2f( n ) {
6565
if ( isnanf( n ) ) {
6666
return NaN;
6767
}
68-
if ( n > FLOAT32_MAX_SAFE_NTH_DOUBLE_FACTORIAL ) {
68+
if ( n > FLOAT32_MAX_NTH_DOUBLE_FACTORIAL ) {
6969
return PINF;
7070
}
7171
if ( n < 0 || isIntegerf( n ) === false ) {

lib/node_modules/@stdlib/math/base/special/factorial2f/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-integerf",
4242
"@stdlib/math/base/assert/is-evenf",
4343
"@stdlib/constants/float32/pinf",
44-
"@stdlib/constants/float32/max-safe-nth-double-factorial"
44+
"@stdlib/constants/float32/max-nth-double-factorial"
4545
]
4646
},
4747
{
@@ -59,7 +59,7 @@
5959
"@stdlib/math/base/assert/is-integerf",
6060
"@stdlib/math/base/assert/is-evenf",
6161
"@stdlib/constants/float32/pinf",
62-
"@stdlib/constants/float32/max-safe-nth-double-factorial"
62+
"@stdlib/constants/float32/max-nth-double-factorial"
6363
]
6464
},
6565
{
@@ -77,7 +77,7 @@
7777
"@stdlib/math/base/assert/is-integerf",
7878
"@stdlib/math/base/assert/is-evenf",
7979
"@stdlib/constants/float32/pinf",
80-
"@stdlib/constants/float32/max-safe-nth-double-factorial"
80+
"@stdlib/constants/float32/max-nth-double-factorial"
8181
]
8282
}
8383
]

lib/node_modules/@stdlib/math/base/special/factorial2f/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_integerf.h"
2222
#include "stdlib/math/base/assert/is_evenf.h"
2323
#include "stdlib/constants/float32/pinf.h"
24-
#include "stdlib/constants/float32/max_safe_nth_double_factorial.h"
24+
#include "stdlib/constants/float32/max_nth_double_factorial.h"
2525
#include <stdint.h>
2626

2727
/**
@@ -42,7 +42,7 @@ float stdlib_base_factorial2f( const int32_t n ) {
4242
if ( stdlib_base_is_nanf( n ) ) {
4343
return 0.0f / 0.0f; // NaN
4444
}
45-
if ( n > STDLIB_CONSTANT_FLOAT32_MAX_SAFE_NTH_DOUBLE_FACTORIAL ) {
45+
if ( n > STDLIB_CONSTANT_FLOAT32_MAX_NTH_DOUBLE_FACTORIAL ) {
4646
return STDLIB_CONSTANT_FLOAT32_PINF;
4747
}
4848
if ( n < 0 || !stdlib_base_is_integerf( n ) ) {

0 commit comments

Comments
 (0)