diff --git a/kernel/generic/zgemm_beta.c b/kernel/generic/zgemm_beta.c index bf836aa3e1..1f1ffe1237 100644 --- a/kernel/generic/zgemm_beta.c +++ b/kernel/generic/zgemm_beta.c @@ -94,7 +94,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, } else { - for (j=n;j>0;j++) { + for (j=n;j>0;j--) { c_offset1 = c_offset; c_offset += ldc;