Skip to content

Commit 674fdd0

Browse files
committed
''
1 parent c43128a commit 674fdd0

File tree

1 file changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/minmax/examples/c

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ int main(void) {
2424
const double x1[] = { 1.0, 0.45, -0.89, 0.0 / 0.0, -0.78, -0.22, 0.66, 0.11, -0.55, 0.0 };
2525
const double x2[] = { -0.22, 0.66, 0.0, -0.55, 0.33, 1.0, 0.0 / 0.0, 0.11, 0.45, -0.78 };
2626

27-
double* v;
2827
int i;
2928
for ( i = 0; i < 10; i++ ) {
30-
v = stdlib_base_minmax( x1[ i ], x2[ i ] );
29+
const double* v = stdlib_base_minmax( x1[ i ], x2[ i ] );
3130
printf( "x1[ %d ]: %lf, x2[ %d ]: %lf, minmax( x1[ %d ], x2[ %d ] ): ( %lf, %lf )\n", i, x1[ i ], i, x2[ i ], i, i, v[0], v[1] );
3231
}
3332
}

0 commit comments

Comments
 (0)