Skip to content

Commit 8006652

Browse files
GeoDaoyukgryte
andauthored
chore: fix C lint errors
PR-URL: #9360 Closes: #9357 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent f42c569 commit 8006652

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/stats/base/snanstdevwd/examples/c

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/stats/base/snanstdevwd/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-
float x[] = { 1.0, 2.0, 0.0/0.0, 3.0, 0.0/0.0, 4.0, 5.0, 6.0, 0.0/0.0, 7.0, 8.0, 0.0/0.0 };
25+
const float x[] = { 1.0f, 2.0f, 0.0f/0.0f, 3.0f, 0.0f/0.0f, 4.0f, 5.0f, 6.0f, 0.0f/0.0f, 7.0f, 8.0f, 0.0f/0.0f };
2626

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

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

3333
// Compute the standard deviation:
3434
float v = stdlib_strided_snanstdevwd( N, 1.0f, x, stride );

0 commit comments

Comments
 (0)