Skip to content

chore: fix C lint errors (issue #7767) #7769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions lib/node_modules/@stdlib/ndarray/ctor/src/get.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @return status code
*/
int8_t stdlib_ndarray_get( const struct ndarray *arr, const int64_t *sub, void *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -60,7 +60,7 @@ int8_t stdlib_ndarray_get( const struct ndarray *arr, const int64_t *sub, void *
* @return status code
*/
int8_t stdlib_ndarray_get_float64( const struct ndarray *arr, const int64_t *sub, double *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -81,7 +81,7 @@ int8_t stdlib_ndarray_get_float64( const struct ndarray *arr, const int64_t *sub
* @return status code
*/
int8_t stdlib_ndarray_get_float32( const struct ndarray *arr, const int64_t *sub, float *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -102,7 +102,7 @@ int8_t stdlib_ndarray_get_float32( const struct ndarray *arr, const int64_t *sub
* @return status code
*/
int8_t stdlib_ndarray_get_uint64( const struct ndarray *arr, const int64_t *sub, uint64_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -123,7 +123,7 @@ int8_t stdlib_ndarray_get_uint64( const struct ndarray *arr, const int64_t *sub,
* @return status code
*/
int8_t stdlib_ndarray_get_int64( const struct ndarray *arr, const int64_t *sub, int64_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -144,7 +144,7 @@ int8_t stdlib_ndarray_get_int64( const struct ndarray *arr, const int64_t *sub,
* @return status code
*/
int8_t stdlib_ndarray_get_uint32( const struct ndarray *arr, const int64_t *sub, uint32_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -165,7 +165,7 @@ int8_t stdlib_ndarray_get_uint32( const struct ndarray *arr, const int64_t *sub,
* @return status code
*/
int8_t stdlib_ndarray_get_int32( const struct ndarray *arr, const int64_t *sub, int32_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -186,7 +186,7 @@ int8_t stdlib_ndarray_get_int32( const struct ndarray *arr, const int64_t *sub,
* @return status code
*/
int8_t stdlib_ndarray_get_uint16( const struct ndarray *arr, const int64_t *sub, uint16_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -207,7 +207,7 @@ int8_t stdlib_ndarray_get_uint16( const struct ndarray *arr, const int64_t *sub,
* @return status code
*/
int8_t stdlib_ndarray_get_int16( const struct ndarray *arr, const int64_t *sub, int16_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -228,7 +228,7 @@ int8_t stdlib_ndarray_get_int16( const struct ndarray *arr, const int64_t *sub,
* @return status code
*/
int8_t stdlib_ndarray_get_uint8( const struct ndarray *arr, const int64_t *sub, uint8_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -249,7 +249,7 @@ int8_t stdlib_ndarray_get_uint8( const struct ndarray *arr, const int64_t *sub,
* @return status code
*/
int8_t stdlib_ndarray_get_int8( const struct ndarray *arr, const int64_t *sub, int8_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -270,7 +270,7 @@ int8_t stdlib_ndarray_get_int8( const struct ndarray *arr, const int64_t *sub, i
* @return status code
*/
int8_t stdlib_ndarray_get_complex128( const struct ndarray *arr, const int64_t *sub, stdlib_complex128_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -291,7 +291,7 @@ int8_t stdlib_ndarray_get_complex128( const struct ndarray *arr, const int64_t *
* @return status code
*/
int8_t stdlib_ndarray_get_complex64( const struct ndarray *arr, const int64_t *sub, stdlib_complex64_t *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand All @@ -312,7 +312,7 @@ int8_t stdlib_ndarray_get_complex64( const struct ndarray *arr, const int64_t *s
* @return status code
*/
int8_t stdlib_ndarray_get_bool( const struct ndarray *arr, const int64_t *sub, bool *out ) {
uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
const uint8_t *idx = stdlib_ndarray_get_ptr( arr, sub );
if ( idx == NULL ) {
return -1;
}
Expand Down