]> git.tdb.fi Git - libs/math.git/commitdiff
Use the correct multiplication operator
authorMikko Rasa <tdb@tdb.fi>
Tue, 14 May 2013 18:53:55 +0000 (21:53 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 14 May 2013 18:53:55 +0000 (21:53 +0300)
source/linal/squarematrix.h

index 94157b0f3b92f2e2de9ebbf49e927d17bf8a9ae8..ee86e13921219702fa58a682c4b5ab2bb5cfb290 100644 (file)
@@ -42,8 +42,7 @@ inline SquareMatrix<T, S> SquareMatrix<T, S>::identity()
 template<typename T, unsigned S>
 SquareMatrix<T, S> &SquareMatrix<T, S>::operator*=(const SquareMatrix<T, S> &m)
 {
-       Matrix<T, S, S>::operator*=(m);
-       return *this;
+       return *this = *this*m;
 }
 
 template<typename T, unsigned S>