Skip to content

Commit 707bb0d

Browse files
authored
bench: fix assignment
Signed-off-by: Athan <[email protected]>
1 parent c3b728f commit 707bb0d

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/max/benchmark/c/native

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ static double rand_double( void ) {
9191
*/
9292
static double benchmark( void ) {
9393
double elapsed;
94-
double t;
9594
double x[ 100 ];
9695
double y[ 100 ];
96+
double t;
9797
double z;
9898
int i;
9999

100100
for ( i = 0; i < 100; i++ ) {
101-
x = ( 200.0*rand_double() ) - 100.0;
102-
y = ( 200.0*rand_double() ) - 100.0;
101+
x[ i ] = ( 200.0*rand_double() ) - 100.0;
102+
y[ i ] = ( 200.0*rand_double() ) - 100.0;
103103
}
104104

105105
t = tic();

0 commit comments

Comments
 (0)