fix missing malloc

This commit is contained in:
Martin Kroeker 2024-02-26 23:03:10 +01:00 committed by GitHub
parent 38283f678e
commit f7ffab870b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ CTEST(isamin, min_idx_in_vec_tail){
CTEST(isamin, min_idx_in_vec_tail_inc_1){
blasint i;
blasint N = ELEMENTS, inc = 1;
float *x = (float*) (ELEMENTS * inc * sizeof(float));
float *x = (float*) malloc(ELEMENTS * inc * sizeof(float));
for (i = 0; i < N * inc; i ++) {
x[i] = i + 1000;
}