Skip to content

Commit 6331f12

Browse files
authored
Apply suggestions from code review
Signed-off-by: Gunj Joshi <[email protected]>
1 parent 7cc58ad commit 6331f12

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

lib/node_modules/@stdlib/math/base/special/nonfibonaccif/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ int main( void ) {
195195
int i;
196196
for ( i = 1; i < 12; i++ ) {
197197
float result = stdlib_base_nonfibonaccif( i );
198-
printf( "x: %i => result: %lf", i , result );
198+
printf( "x: %i => result: %f", i , result );
199199
}
200200
}
201201
```

lib/node_modules/@stdlib/math/base/special/nonfibonaccif/benchmark/c/native/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,4 @@ run: $(c_targets)
143143
clean:
144144
$(QUIET) -rm -f *.o *.out
145145

146-
.PHONY: clean
146+
.PHONY: clean

lib/node_modules/@stdlib/math/base/special/nonfibonaccif/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static double tic( void ) {
7979
*
8080
* @return random number
8181
*/
82-
static double rand_float( void ) {
82+
static float rand_float( void ) {
8383
int r = rand();
8484
return (float)r / ( (float)RAND_MAX + 1.0f );
8585
}
@@ -90,9 +90,9 @@ static double rand_float( void ) {
9090
*/
9191
static double benchmark( void ) {
9292
double elapsed;
93+
int x[ 100 ];
9394
double t;
9495
float y;
95-
int x[ 100 ];
9696
int i;
9797

9898
for ( i = 0; i < 100; i++ ) {

lib/node_modules/@stdlib/math/base/special/nonfibonaccif/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( n )
3-
Computes the nth non-Fibonacci number in
4-
single-precision floating-point format.
3+
Computes the nth non-Fibonacci number in single-precision floating-point
4+
format.
55

66
If not provided a nonnegative integer value, the function returns `NaN`.
77

lib/node_modules/@stdlib/math/base/special/nonfibonaccif/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
int main( void ) {
2323
int i;
2424
for ( i = 1; i < 12; i++ ) {
25-
double result = stdlib_base_nonfibonaccif( i );
25+
float result = stdlib_base_nonfibonaccif( i );
2626
printf( "x: %i => result: %f", i , result );
2727
}
2828
}

0 commit comments

Comments
 (0)