From cdefdb21cd9b98b5ad60bd4b216afe37c58e4cd7 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Thu, 26 Feb 2015 06:37:03 +0800 Subject: [PATCH] Refs #492. Fixed c/zsyr bug with negative incx. --- interface/zsyr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/zsyr.c b/interface/zsyr.c index 5d62e8797..5fe29cefa 100644 --- a/interface/zsyr.c +++ b/interface/zsyr.c @@ -173,7 +173,7 @@ void CNAME(enum CBLAS_ORDER order, enum CBLAS_UPLO Uplo, int n, FLOAT alpha, FLO FUNCTION_PROFILE_START(); - if (incx < 0 ) x -= (n - 1) * incx; + if (incx < 0 ) x -= (n - 1) * incx * 2; buffer = (FLOAT *)blas_memory_alloc(1);