Skip to content

Commit dcd317e

Browse files
committed
Fixed C lint errors
1 parent 8fe91fb commit dcd317e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/stats/base/smeanors/benchmark/c/benchmark.length.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static float rand_float( void ) {
9696
*/
9797
static double benchmark( int iterations, int len ) {
9898
double elapsed;
99-
float x[ len ];
99+
double x[ len ];
100100
float v;
101101
double t;
102102
int i;

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ 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 a mask strided array:
34-
uint8_t M[] = { 0, 0, 1, 0, 0, 1 };
34+
const uint8_t M[] = { 0, 0, 1, 0, 0, 1 };
3535

3636
// Create an output strided array:
3737
double Y[] = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 };

0 commit comments

Comments
 (0)