Skip to content

Commit b6a0e1f

Browse files
committed
bench: fix call signature
--- 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: na - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 07e112a commit b6a0e1f

File tree

1 file changed

+1
-3
lines changed
  • lib/node_modules/@stdlib/ndarray/ctor/benchmark/c

1 file changed

+1
-3
lines changed

lib/node_modules/@stdlib/ndarray/ctor/benchmark/c/benchmark.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,7 +3271,6 @@ static double benchmark66( void ) {
32713271
static double benchmark67( void ) {
32723272
double elapsed;
32733273
int64_t v;
3274-
int64_t j;
32753274
double t;
32763275
int i;
32773276

@@ -3291,8 +3290,7 @@ static double benchmark67( void ) {
32913290

32923291
t = tic();
32933292
for ( i = 0; i < ITERATIONS; i++ ) {
3294-
j = (int64_t)( rand_double()*ndims );
3295-
v = stdlib_ndarray_offset_elements( arr, j );
3293+
v = stdlib_ndarray_offset_elements( arr );
32963294
if ( v != offset ) {
32973295
printf( "unexpected result\n" );
32983296
break;

0 commit comments

Comments
 (0)