Skip to content

Commit 30f0e04

Browse files
committed
chore: resolve lint errors
--- 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: na - 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: passed - 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: failed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: skipped - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: failed --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: passed - task: run_c_examples status: skipped - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: skipped - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: failed ---
1 parent 00b45b2 commit 30f0e04

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/ndarray/base/unary-accumulate/examples/c/dd_d

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/ndarray/base/unary-accumulate/examples/c/dd_d/example.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ int main( void ) {
6363

6464
// Define the array shapes:
6565
int64_t xsh[] = { 2, 2, 2 };
66-
int64_t ish[] = {};
67-
int64_t osh[] = {};
66+
int64_t ish[] = { 0 };
67+
int64_t osh[] = { 0 };
6868

6969
// Define the strides:
7070
int64_t sx[] = { 32, 16, 8 };
@@ -94,14 +94,14 @@ int main( void ) {
9494
}
9595

9696
// Create an initial value zero-dimensional ndarray:
97-
struct ndarray *initial = stdlib_ndarray_allocate( dtype, ibuf, ndims, ish, si, oi, order, imode, nsubmodes, submodes );
97+
struct ndarray *initial = stdlib_ndarray_allocate( dtype, ibuf, 0, ish, si, oi, order, imode, nsubmodes, submodes );
9898
if ( initial == NULL ) {
9999
fprintf( stderr, "Error allocating memory.\n" );
100100
exit( EXIT_FAILURE );
101101
}
102102

103103
// Create an output zero-dimensional ndarray:
104-
struct ndarray *out = stdlib_ndarray_allocate( dtype, obuf, ndims, osh, so, oo, order, imode, nsubmodes, submodes );
104+
struct ndarray *out = stdlib_ndarray_allocate( dtype, obuf, 0, osh, so, oo, order, imode, nsubmodes, submodes );
105105
if ( out == NULL ) {
106106
fprintf( stderr, "Error allocating memory.\n" );
107107
exit( EXIT_FAILURE );

0 commit comments

Comments
 (0)