Skip to content

Commit cb86a56

Browse files
committed
fix: replace policy string with policy object
--- 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: na - 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 9f35a29 commit cb86a56

File tree

1 file changed

+5
-2
lines changed
  • lib/node_modules/@stdlib/stats/max/lib

1 file changed

+5
-2
lines changed

lib/node_modules/@stdlib/stats/max/lib/main.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ var factory = require( '@stdlib/ndarray/base/unary-reduce-strided1d-dispatch-fac
3131

3232
var idtypes = dtypes( 'real_and_generic' );
3333
var odtypes = dtypes( 'real_and_generic' );
34-
var policy = 'same';
34+
var policies = {
35+
'output': 'same',
36+
'casting': 'none'
37+
};
3538
var table = {
3639
'types': [
3740
'float64', // input
@@ -90,7 +93,7 @@ var table = {
9093
* var v = out.get();
9194
* // returns 11.0
9295
*/
93-
var max = factory( table, [ idtypes ], odtypes, policy );
96+
var max = factory( table, [ idtypes ], odtypes, policies );
9497

9598

9699
// EXPORTS //

0 commit comments

Comments
 (0)