Skip to content

Commit 25f0a00

Browse files
kgrytesaurabhraghuvanshii
authored andcommitted
fix: use correct stride
--- 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 ---
1 parent 710d2f8 commit 25f0a00

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/ndarray/base/unary/src

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/ndarray/base/unary/src/dispatch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int8_t stdlib_ndarray_unary_1d_flatten( const ndarrayUnaryFcn f, const in
107107
int64_t sh[] = { N };
108108

109109
// Shallow copy and reshape the arrays...
110-
int64_t sx1[] = { s2 };
110+
int64_t sx1[] = { s1 };
111111
struct ndarray *x1c = stdlib_ndarray_allocate(
112112
stdlib_ndarray_dtype( x1 ),
113113
stdlib_ndarray_data( x1 ),
@@ -253,6 +253,8 @@ static int8_t stdlib_ndarray_unary_1d_flatten( const ndarrayUnaryFcn f, const in
253253
* }
254254
*/
255255
int8_t stdlib_ndarray_unary_dispatch( const struct ndarrayUnaryDispatchObject *obj, struct ndarray *arrays[], void *fcn ) {
256+
const int64_t *sh1;
257+
const int64_t *sh2;
256258
struct ndarray *x1;
257259
struct ndarray *x2;
258260
int8_t status;
@@ -261,8 +263,6 @@ int8_t stdlib_ndarray_unary_dispatch( const struct ndarrayUnaryDispatchObject *o
261263
int64_t mab2;
262264
int64_t mib1;
263265
int64_t mib2;
264-
int64_t *sh1;
265-
int64_t *sh2;
266266
int64_t *s1;
267267
int64_t *s2;
268268
int64_t len;

0 commit comments

Comments
 (0)