Skip to content

Commit ccb5877

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 25f0a00 commit ccb5877

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int8_t stdlib_ndarray_unary_assign_1d_flatten( const ndarrayUnaryAssignFc
105105
int64_t sh[] = { N };
106106

107107
// Shallow copy and reshape the arrays...
108-
int64_t sx1[] = { s2 };
108+
int64_t sx1[] = { s1 };
109109
struct ndarray *x1c = stdlib_ndarray_allocate(
110110
stdlib_ndarray_dtype( x1 ),
111111
stdlib_ndarray_data( x1 ),
@@ -245,6 +245,8 @@ static int8_t stdlib_ndarray_unary_assign_1d_flatten( const ndarrayUnaryAssignFc
245245
* }
246246
*/
247247
int8_t stdlib_ndarray_unary_assign_dispatch( const struct ndarrayUnaryAssignDispatchObject *obj, struct ndarray *arrays[] ) {
248+
const int64_t *sh1;
249+
const int64_t *sh2;
248250
struct ndarray *x1;
249251
struct ndarray *x2;
250252
int8_t status;
@@ -253,8 +255,6 @@ int8_t stdlib_ndarray_unary_assign_dispatch( const struct ndarrayUnaryAssignDisp
253255
int64_t mab2;
254256
int64_t mib1;
255257
int64_t mib2;
256-
int64_t *sh1;
257-
int64_t *sh2;
258258
int64_t *s1;
259259
int64_t *s2;
260260
int64_t len;

0 commit comments

Comments
 (0)