Skip to content

Commit 64bb2ec

Browse files
authored
bench: fix types in C benchmarks
PR-URL: #7864 Reviewed-by: Athan Reines <[email protected]>
1 parent f21cbe5 commit 64bb2ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/node_modules/@stdlib/number/uint32/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 uint32_t mul( 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/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
uint32_t x[ 100 ];
9595
double elapsed;
96-
double y;
96+
uint32_t y;
9797
double t;
9898
int i;
9999

0 commit comments

Comments
 (0)