From 99cca3dc8a07ef39b9821468b8a0f7a4d6cacf72 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Wed, 2 Oct 2024 21:16:09 -0400 Subject: [PATCH] chore: declare parameter as const array --- .../@stdlib/ndarray/base/broadcast-shapes/README.md | 2 +- .../@stdlib/ndarray/base/broadcast-shapes/src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/README.md b/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/README.md index e67d44405b0..831032182b3 100644 --- a/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/README.md +++ b/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/README.md @@ -311,7 +311,7 @@ The function accepts the following arguments: - **out**: `[out] int64_t*` output shape array. ```c -int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], int64_t ndims[], int64_t *out ); +int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], const int64_t ndims[], int64_t *out ); ``` If successful, the function returns `0`; otherwise, the function returns `-1` (e.g., due to incompatible shapes). diff --git a/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/src/main.c b/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/src/main.c index 35a365407bf..ca983c82717 100644 --- a/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/src/main.c +++ b/lib/node_modules/@stdlib/ndarray/base/broadcast-shapes/src/main.c @@ -55,7 +55,7 @@ * int64_t out[] = { 0, 0, 0, 0 }; * int8_t status = stdlib_ndarray_broadcast_shapes( 2, shapes, ndims, out ); */ -int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], int64_t ndims[], int64_t *out ) { +int8_t stdlib_ndarray_broadcast_shapes( int64_t M, int64_t *shapes[], const int64_t ndims[], int64_t *out ) { int64_t dim; int64_t *sh; int64_t n1;