Skip to content

Commit

Permalink
fix: use correct stride
Browse files Browse the repository at this point in the history
---
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: passed
  - 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
---
  • Loading branch information
kgryte committed Jan 15, 2025
1 parent b8325c3 commit e689326
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/ndarray/base/unary/src/dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static int8_t stdlib_ndarray_unary_1d_flatten( const ndarrayUnaryFcn f, const in
int64_t sh[] = { N };

// Shallow copy and reshape the arrays...
int64_t sx1[] = { s2 };
int64_t sx1[] = { s1 };
struct ndarray *x1c = stdlib_ndarray_allocate(
stdlib_ndarray_dtype( x1 ),
stdlib_ndarray_data( x1 ),
Expand Down Expand Up @@ -253,6 +253,8 @@ static int8_t stdlib_ndarray_unary_1d_flatten( const ndarrayUnaryFcn f, const in
* }
*/
int8_t stdlib_ndarray_unary_dispatch( const struct ndarrayUnaryDispatchObject *obj, struct ndarray *arrays[], void *fcn ) {
const int64_t *sh1;
const int64_t *sh2;
struct ndarray *x1;
struct ndarray *x2;
int8_t status;
Expand All @@ -261,8 +263,6 @@ int8_t stdlib_ndarray_unary_dispatch( const struct ndarrayUnaryDispatchObject *o
int64_t mab2;
int64_t mib1;
int64_t mib2;
int64_t *sh1;
int64_t *sh2;
int64_t *s1;
int64_t *s2;
int64_t len;
Expand Down

0 comments on commit e689326

Please sign in to comment.