From 8fb1d70d0bfe44d8f4d995ba7ffad1b816baf09b Mon Sep 17 00:00:00 2001 From: castano Date: Fri, 14 Nov 2008 02:19:07 +0000 Subject: [PATCH] Fix bug detected by gcc-4.3. --- src/nvmath/Sparse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvmath/Sparse.cpp b/src/nvmath/Sparse.cpp index 885c49f..757093d 100644 --- a/src/nvmath/Sparse.cpp +++ b/src/nvmath/Sparse.cpp @@ -1,4 +1,4 @@ -// This code is in the public domain -- Ignacio Castaņo +// This code is in the public domain -- Ignacio Castao #include #include @@ -235,7 +235,7 @@ void FullMatrix::madRow(uint y, float alpha, FullVector & v) const const uint count = v.dimension(); for (uint i = 0; i < count; i++) { - v[i] += m_array[y * count + i]; + v[i] += alpha * m_array[y * count + i]; } }