CV fix: CID #1321242 77/19177/3
Siddhartha Gairola [Sat, 11 Mar 2017 21:40:08 +0000 (02:40 +0530)]
Change-Id: I7a9baf24c1c2ef91eb8211dd23267ba9bd77e787

scilab/modules/linear_algebra/sci_gateway/cpp/sci_schur.cpp

index 2912969..02f9cb9 100644 (file)
@@ -183,7 +183,7 @@ types::Function::ReturnValue sci_schur(types::typed_list &in, int _iRetCount, ty
         }
         case 12: // double string
         {
-            if (_iRetCount < 2 && _iRetCount > 3)
+            if (_iRetCount >= 2 && _iRetCount <= 3)
             {
                 Scierror(78, _("%s: Wrong number of output argument(s): %d to %d expected.\n"), "schur", 2, 3);
                 return types::Function::Error;