Skip to content

Commit 3f259f1

Browse files
authored
fix: use correct data type of searchElement in C implementation
PR-URL: #7463 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent f344e9d commit 3f259f1

File tree

2 files changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/blas/ext/base/sindex-of

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/blas/ext/base/sindex-of/include/stdlib/blas/ext/base/sindex_of.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ extern "C" {
3131
/**
3232
* Returns the first index of a specified search element in a single-precision floating-point strided array.
3333
*/
34-
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX );
34+
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX );
3535

3636
/**
3737
* Returns the first index of a specified search element in a single-precision floating-point strided array using alternative indexing semantics.
3838
*/
39-
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
39+
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
4040

4141
#ifdef __cplusplus
4242
}

lib/node_modules/@stdlib/blas/ext/base/sindex-of/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @param strideX stride length
3030
* @return index
3131
*/
32-
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX ) {
32+
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX ) {
3333
CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
3434
return API_SUFFIX(stdlib_strided_sindex_of_ndarray)( N, searchElement, X, strideX, ox );
3535
}
@@ -44,7 +44,7 @@ CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const CBLAS_I
4444
* @param offsetX starting index
4545
* @return index
4646
*/
47-
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
47+
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
4848
CBLAS_INT ix;
4949
CBLAS_INT i;
5050

0 commit comments

Comments
 (0)