From 2e9744d0b3ebaca1caf03fdd9580b6b4503800bb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 30 Dec 2013 14:07:32 +1100 Subject: [PATCH] AP_Math: prevent transpose usage error in matrix API --- libraries/AP_Math/matrix3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Math/matrix3.h b/libraries/AP_Math/matrix3.h index 3d8fcb5a37..09ecbfc794 100644 --- a/libraries/AP_Math/matrix3.h +++ b/libraries/AP_Math/matrix3.h @@ -176,9 +176,9 @@ public: // transpose the matrix Matrix3 transposed(void) const; - Matrix3 transpose(void) + void transpose(void) { - return *this = transposed(); + *this = transposed(); } // zero the matrix