Skip to content

Commit 99cca3d

Browse files
committed
chore: declare parameter as const array
1 parent edabc3d commit 99cca3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ The function accepts the following arguments:
311311
- **out**: `[out] int64_t*` output shape array.
312312

313313
```c
314-
int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], int64_t ndims[], int64_t *out );
314+
int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], const int64_t ndims[], int64_t *out );
315315
```
316316
317317
If successful, the function returns `0`; otherwise, the function returns `-1` (e.g., due to incompatible shapes).

lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
* int64_t out[] = { 0, 0, 0, 0 };
5656
* int8_t status = stdlib_ndarray_broadcast_shapes( 2, shapes, ndims, out );
5757
*/
58-
int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], int64_t ndims[], int64_t *out ) {
58+
int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], const int64_t ndims[], int64_t *out ) {
5959
int64_t dim;
6060
int64_t *sh;
6161
int64_t n1;

0 commit comments

Comments
 (0)