Skip to content

Commit 8c20ca4

Browse files
authored
bench: fix types in C benchmarks
PR-URL: #7865 Reviewed-by: Athan Reines <[email protected]>
1 parent b5cb6da commit 8c20ca4

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

lib/node_modules/@stdlib/number/uint16/base/add/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static uint16_t add( const uint16_t x, const uint16_t y ) {
101101
static double benchmark( void ) {
102102
uint16_t x[ 100 ];
103103
double elapsed;
104-
double y;
104+
uint16_t y;
105105
double t;
106106
int i;
107107

lib/node_modules/@stdlib/number/uint16/base/add/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static double rand_double( void ) {
9393
static double benchmark( void ) {
9494
uint16_t x[ 100 ];
9595
double elapsed;
96-
double y;
96+
uint16_t y;
9797
double t;
9898
int i;
9999

lib/node_modules/@stdlib/number/uint16/base/mul/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static uint16_t mul( const uint16_t x, const uint16_t y ) {
101101
static double benchmark( void ) {
102102
uint16_t x[ 100 ];
103103
double elapsed;
104-
double y;
104+
uint16_t y;
105105
double t;
106106
int i;
107107

lib/node_modules/@stdlib/number/uint16/base/mul/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static double rand_double( void ) {
9393
static double benchmark( void ) {
9494
uint16_t x[ 100 ];
9595
double elapsed;
96-
double y;
96+
uint16_t y;
9797
double t;
9898
int i;
9999

lib/node_modules/@stdlib/number/uint16/base/sub/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static uint16_t sub( const uint16_t x, const uint16_t y ) {
101101
static double benchmark( void ) {
102102
uint16_t x[ 100 ];
103103
double elapsed;
104-
double y;
104+
uint16_t y;
105105
double t;
106106
int i;
107107

lib/node_modules/@stdlib/number/uint16/base/sub/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static double rand_double( void ) {
9393
static double benchmark( void ) {
9494
uint16_t x[ 100 ];
9595
double elapsed;
96-
double y;
96+
uint16_t y;
9797
double t;
9898
int i;
9999

lib/node_modules/@stdlib/number/uint32/base/sub/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static uint32_t sub( const uint32_t x, const uint32_t y ) {
101101
static double benchmark( void ) {
102102
uint32_t x[ 100 ];
103103
double elapsed;
104-
double y;
104+
uint32_t y;
105105
double t;
106106
int i;
107107

lib/node_modules/@stdlib/number/uint32/base/sub/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static double rand_double( void ) {
9393
static double benchmark( void ) {
9494
uint32_t x[ 100 ];
9595
double elapsed;
96-
double y;
96+
uint32_t y;
9797
double t;
9898
int i;
9999

lib/node_modules/@stdlib/number/uint8/base/add/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static uint8_t add( const uint8_t x, const uint8_t y ) {
101101
static double benchmark( void ) {
102102
uint8_t x[ 100 ];
103103
double elapsed;
104-
double y;
104+
uint8_t y;
105105
double t;
106106
int i;
107107

lib/node_modules/@stdlib/number/uint8/base/add/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static double rand_double( void ) {
9393
static double benchmark( void ) {
9494
uint8_t x[ 100 ];
9595
double elapsed;
96-
double y;
96+
uint8_t y;
9797
double t;
9898
int i;
9999

0 commit comments

Comments
 (0)