Skip to content

Commit 99f3923

Browse files
committed
chore: fix C lint errors (issue #6238)
1 parent 8fe91fb commit 99f3923

File tree

2 files changed

+7
-5
lines changed
  • lib/node_modules/@stdlib

2 files changed

+7
-5
lines changed

lib/node_modules/@stdlib/math/base/special/floor10/src/addon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
#include "stdlib/math/base/special/floor10.h"
2020
#include "stdlib/math/base/napi/unary.h"
2121

22-
STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_floor10 )
22+
// Changed `stdlib_base_floor10` to `stdlib_base_floor10_module` to avoid shadowing:
23+
STDLIB_MATH_BASE_NAPI_MODULE_D_D( stdlib_base_floor10_module )

lib/node_modules/@stdlib/stats/base/dists/uniform/mgf/test/test.native.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,17 @@ tape( 'if provided `a >= b`, the function returns `NaN`', opts, function test( t
8181
t.end();
8282
});
8383

84-
tape( 'if provided valid parameters, the function returns `1` for `t = 0`', function test( t ) {
84+
// ✅ UPDATED BLOCK (ADDED opts ARGUMENT BELOW)
85+
tape( 'if provided valid parameters, the function returns `1` for `t = 0`', opts, function test( t ) {
8586
var y;
8687

87-
y = mgf( 0.0, 2.0, 4.0 );
88+
y = mgf( 0.0, 2.0, 4.0, opts );
8889
t.equal( y, 1.0, 'returns 1' );
8990

90-
y = mgf( 0.0, 1.0, 2.0 );
91+
y = mgf( 0.0, 1.0, 2.0, opts );
9192
t.equal( y, 1.0, 'returns 1' );
9293

93-
y = mgf( 0.0, 0.2, 0.8 );
94+
y = mgf( 0.0, 0.2, 0.8, opts );
9495
t.equal( y, 1.0, 'returns 1' );
9596

9697
t.end();

0 commit comments

Comments
 (0)