Skip to content

Commit 29d3bbb

Browse files
GeoDaoyukgryte
andauthored
chore: fix C lint errors
PR-URL: #8157 Closes: #8156 Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]>
1 parent d94514b commit 29d3bbb

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/ndarray/base/assert/is-single-segment-compatible/include/stdlib/ndarray/base/assert/is_single_segment_compatible.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
/**
3333
* Determines if an array is compatible with a single memory segment.
3434
*/
35-
int8_t stdlib_ndarray_is_single_segment_compatible( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset );
35+
int8_t stdlib_ndarray_is_single_segment_compatible( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset );
3636

3737
#ifdef __cplusplus
3838
}

lib/node_modules/@stdlib/ndarray/base/assert/is-single-segment-compatible/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* int8_t b = stdlib_ndarray_is_single_segment_compatible( STDLIB_NDARRAY_UINT8, ndims, shape, strides, offset );
5050
* // returns 1
5151
*/
52-
int8_t stdlib_ndarray_is_single_segment_compatible( enum STDLIB_NDARRAY_DTYPE dtype, int64_t ndims, int64_t *shape, int64_t *strides, int64_t offset ) {
52+
int8_t stdlib_ndarray_is_single_segment_compatible( const enum STDLIB_NDARRAY_DTYPE dtype, const int64_t ndims, const int64_t *shape, const int64_t *strides, const int64_t offset ) {
5353
int64_t tmp[2];
5454
int64_t nbytes;
5555
int64_t len;

lib/node_modules/@stdlib/ndarray/base/bytes-per-element/include/stdlib/ndarray/base/bytes_per_element.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ enum STDLIB_NDARRAY_BYTES_PER_ELEMENT {
6565
/**
6666
* Returns the number of bytes per element for a provided data type.
6767
*/
68-
int64_t stdlib_ndarray_bytes_per_element( enum STDLIB_NDARRAY_DTYPE dtype );
68+
int64_t stdlib_ndarray_bytes_per_element( const enum STDLIB_NDARRAY_DTYPE dtype );
6969

7070
#ifdef __cplusplus
7171
}

lib/node_modules/@stdlib/ndarray/base/bytes-per-element/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* int64_t nbytes = stdlib_ndarray_bytes_per_element( STDLIB_NDARRAY_FLOAT64 );
3939
* // returns 8
4040
*/
41-
int64_t stdlib_ndarray_bytes_per_element( enum STDLIB_NDARRAY_DTYPE dtype ) {
41+
int64_t stdlib_ndarray_bytes_per_element( const enum STDLIB_NDARRAY_DTYPE dtype ) {
4242
switch ( dtype ) {
4343
case STDLIB_NDARRAY_FLOAT64:
4444
return STDLIB_NDARRAY_FLOAT64_BYTES_PER_ELEMENT;

lib/node_modules/@stdlib/ndarray/base/numel/include/stdlib/ndarray/base/numel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern "C" {
3131
/**
3232
* Returns the number of elements in an array.
3333
*/
34-
int64_t stdlib_ndarray_numel( int64_t ndims, int64_t *shape );
34+
int64_t stdlib_ndarray_numel( const int64_t ndims, const int64_t *shape );
3535

3636
#ifdef __cplusplus
3737
}

lib/node_modules/@stdlib/ndarray/base/numel/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* int64_t n = stdlib_ndarray_numel( ndims, shape );
3636
* // returns 80
3737
*/
38-
int64_t stdlib_ndarray_numel( int64_t ndims, int64_t *shape ) {
38+
int64_t stdlib_ndarray_numel( const int64_t ndims, const int64_t *shape ) {
3939
int64_t n;
4040
int64_t i;
4141

0 commit comments

Comments
 (0)