Skip to content

Commit a299630

Browse files
committed
fix: avoid potential external mutation
1 parent 2d9de13 commit a299630

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/ndarray/iter/indices/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/ndarray/iter/indices/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function nditerIndices( shape ) {
148148
};
149149
}
150150
if ( i > 0 ) {
151-
idx = nextCartesianIndex( shape, opts.order, idx, dim, idx );
151+
idx = nextCartesianIndex( sh, opts.order, idx, dim, idx );
152152
}
153153
// Return the next set of indices:
154154
return {

0 commit comments

Comments
 (0)