Skip to content

Commit 7bb5cc5

Browse files
authored
bench: add const qualifiers
Signed-off-by: Athan <[email protected]>
1 parent 4124fb7 commit 7bb5cc5

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/ndarray/base/ind2sub/benchmark/c

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/ndarray/base/ind2sub/benchmark/c/benchmark.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ static double benchmark1( void ) {
9999
double t;
100100
int i;
101101

102-
int64_t ndims = 3;
102+
const int64_t ndims = 3;
103103
const int64_t shape[] = { 10, 10, 10 };
104104
const int64_t strides[] = { 100, -10, 1 };
105-
int64_t offset = 90;
106-
int64_t len = 1000;
105+
const int64_t offset = 90;
106+
const int64_t len = 1000;
107107

108108
int64_t out[ 3 ];
109109

0 commit comments

Comments
 (0)