Skip to content

Commit 6c00f92

Browse files
authored
chore: fix C lint errors
PR-URL: #11279 Closes: #11274 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 87b7d3d commit 6c00f92

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/strided/base/dmap/examples/c/example.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ static double scale( const double x ) {
2828

2929
int main( void ) {
3030
// Create an input strided array:
31-
double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };
31+
const double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };
3232

3333
// Create an output strided array:
3434
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
3535

3636
// Specify the number of elements:
37-
int64_t N = 6;
37+
const int64_t N = 6;
3838

3939
// Define the strides:
40-
int64_t strideX = 1;
41-
int64_t strideY = -1;
40+
const int64_t strideX = 1;
41+
const int64_t strideY = -1;
4242

4343
// Apply the callback:
4444
stdlib_strided_dmap( N, X, strideX, Y, strideY, scale );

lib/node_modules/@stdlib/strided/base/dmap/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
* return x * 10.0;
3939
* }
4040
*
41-
* double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };
41+
* const double X[] = { 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 };
4242
* double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };
4343
*
44-
* int64_t N = 6;
44+
* const int64_t N = 6;
4545
*
4646
* stdlib_strided_dmap( N, X, 1, Y, 1, scale );
4747
*/

0 commit comments

Comments
 (0)