Skip to content

Commit c77af7c

Browse files
authored
Apply suggestions from code review
Co-authored-by: Athan <kgryte@gmail.com> Signed-off-by: Athan <kgryte@gmail.com>
1 parent 995dc4e commit c77af7c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/base/ssorthp/src

lib/node_modules/@stdlib/blas/ext/base/ssorthp/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @param X input array
4040
* @param strideX stride length
4141
*/
42-
void API_SUFFIX(stdlib_strided_ssorthp)( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX) {
42+
void API_SUFFIX(stdlib_strided_ssorthp)( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX ) {
4343
CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
4444
API_SUFFIX(stdlib_strided_ssorthp_ndarray)( N, order, X, strideX, ox );
4545
}
@@ -75,11 +75,11 @@ void API_SUFFIX(stdlib_strided_ssorthp_ndarray)( const CBLAS_INT N, const float
7575
float v2;
7676
float t;
7777

78-
if ( N <= 0 || order == 0.0 ) {
78+
if ( N <= 0 || order == 0.0f ) {
7979
return;
8080
}
8181
// For a positive stride, sorting in decreasing order is equivalent to providing a negative stride and sorting in increasing order, and, for a negative stride, sorting in decreasing order is equivalent to providing a positive stride and sorting in increasing order...
82-
if ( order < 0.0 ) {
82+
if ( order < 0.0f ) {
8383
sx = -strideX;
8484
ox = offsetX - ( (N-1)*sx );
8585
} else {

0 commit comments

Comments
 (0)