Fix range exceeding actual data size in quick_divide

This commit is contained in:
Martin Kroeker 2017-07-28 00:13:24 +02:00 committed by GitHub
parent ae93532fd3
commit 9332042d5f
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG ku, BLASLONG kl, FLOAT *alpha, FLOAT
#else #else
range_m[num_cpu] = num_cpu * ((n + 15) & ~15); range_m[num_cpu] = num_cpu * ((n + 15) & ~15);
#endif #endif
if (range_m[num_cpu] > n) range_m[num_cpu] = n;
queue[num_cpu].mode = mode; queue[num_cpu].mode = mode;
queue[num_cpu].routine = gbmv_kernel; queue[num_cpu].routine = gbmv_kernel;