Skip to content

Commit d6b9e69

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 2f59047 commit d6b9e69

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/math/base/special/wrapf/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static float rand_float( void ) {
9191
* @param max maximum value
9292
* @return wrapped value
9393
*/
94-
float wrapf( float v, float min, float max ) {
94+
static float wrapf( float v, float min, float max ) {
9595
float delta;
9696
if ( min <= v && v < max ) {
9797
return v;
@@ -101,7 +101,7 @@ float wrapf( float v, float min, float max ) {
101101
if ( v < min ) {
102102
v += delta * ( truncf( (min-v)/delta ) + 1.0f );
103103
}
104-
return min + fmodf( (v-min), delta );
104+
return min + fmodf( v-min, delta );
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)