Skip to content

Commit 87baf9c

Browse files
author
wuanjun 00447568
committed
Merge branch 'develop' of https://github.com/aaawuanjun/OpenBLAS into develop
2 parents f682d19 + 790d50f commit 87baf9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

benchmark/trmv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
106106
if ((p = getenv("OPENBLAS_LOOPS"))) loops = atoi(p);
107107
if ((p = getenv("OPENBLAS_INCX"))) inc_x = atoi(p);
108108

109-
long n, i, j;
109+
blasint n, i, j;
110110

111111
int from = 1;
112112
int to = 200;
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
144144
fprintf(stderr, " %6d : ", (int)n);
145145
for(j = 0; j < n; j++) {
146146
for(i = 0; i < n * COMPSIZE; i++) {
147-
a[i + j * n * COMPSIZE] = ((FLOAT) rand() / (FLOAT) RAND_MAX) - 0.5;
147+
a[(long)i + (long)j * (long)n * COMPSIZE] = ((FLOAT) rand() / (FLOAT) RAND_MAX) - 0.5;
148148
}
149149
}
150150

0 commit comments

Comments
 (0)