Skip to content

Commit 404a21d

Browse files
committed
Auto-generated commit
1 parent b8c0e7f commit 404a21d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/c/example.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
int main( void ) {
2424
// Create a strided array:
25-
double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
25+
const double x[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 0.0/0.0, 0.0/0.0 };
2626

2727
// Specify the number of elements:
28-
int64_t N = 5;
28+
const int64_t N = 5;
2929

3030
// Specify the stride length:
31-
int64_t stride = 2;
31+
const int64_t stride = 2;
3232

3333
// Compute the sum:
3434
double v = stdlib_strided_dnansumors( N, x, stride );

0 commit comments

Comments
 (0)