Skip to content

Commit dd9c251

Browse files
committed
chore: clean-up
--- 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: passed - 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 3d4246c commit dd9c251

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

lib/node_modules/@stdlib/stats/base/dists/erlang/mean/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static double benchmark( void ) {
104104

105105
for ( i = 0; i < 100; i++ ) {
106106
lambda[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 10.0 );
107-
k[ i ] = stdlib_base_ceil(random_uniform( 1.0, 10.0 ));
107+
k[ i ] = stdlib_base_ceil( random_uniform( 1.0, 10.0 ) );
108108
}
109109

110110
t = tic();

lib/node_modules/@stdlib/stats/base/dists/erlang/mean/lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ var addon = require( './../src/addon.node' );
5050
* // returns NaN
5151
*
5252
* @example
53-
* var v = mean( -0.1, 1.0 );
53+
* var v = mean( -1, 1.0 );
5454
* // returns NaN
5555
*
5656
* @example

lib/node_modules/@stdlib/stats/base/dists/erlang/mean/src/addon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#include "stdlib/stats/base/dists/erlang/mean.h"
2020
#include "stdlib/math/base/napi/binary.h"
2121

22-
// cppcheck-suppress shadowFunction
2322
STDLIB_MATH_BASE_NAPI_MODULE_ID_D( stdlib_base_dists_erlang_mean )

lib/node_modules/@stdlib/stats/base/dists/erlang/mean/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
*/
3434
double stdlib_base_dists_erlang_mean( const int32_t k, const double lambda ) {
3535
if (
36-
k <= 0.0 ||
36+
k <= 0 ||
3737
stdlib_base_is_nan( lambda ) ||
3838
lambda <= 0.0
3939
) {
4040
return 0.0/0.0; // NaN
4141
}
42-
return k / lambda;
42+
return (double)k / lambda;
4343
}

0 commit comments

Comments
 (0)