changeset 26435:590643c853bd stable

MatrixType.cc: Fix static analyzer detected issues (bug #55347). * MatrixType.cc (matrix_complex_probe): Replace final "else if" with just "else" since it is guaranteed to be true.
author Rik <rik@octave.org>
date Fri, 04 Jan 2019 15:23:59 -0800
parents fad593da4b57
children 0dcb3e515370
files liboctave/array/MatrixType.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/array/MatrixType.cc	Fri Jan 04 15:13:00 2019 -0800
+++ b/liboctave/array/MatrixType.cc	Fri Jan 04 15:23:59 2019 -0800
@@ -188,7 +188,7 @@
         typ = MatrixType::Lower;
       else if (hermitian)
         typ = MatrixType::Hermitian;
-      else if (ncols == nrows)
+      else
         typ = MatrixType::Full;
     }
   else