differential_equations: fix bug_3551.tst execution 75/21175/2
Clément DAVID [Mon, 16 Dec 2019 10:28:22 +0000 (11:28 +0100)]
Change-Id: I888fc19d36a6715ec9483714cf2ab5a29b4dfa83

scilab/modules/differential_equations/sci_gateway/cpp/sci_bvode.cpp

index 7d52fd0..794d379 100644 (file)
@@ -268,7 +268,7 @@ types::Function::ReturnValue sci_bvode(types::typed_list &in, int _iRetCount, ty
     for (int i = 0; i < sumM; i++)
     {
         int ib = sumM + 1 - i;
-        if (pDblZeta->get(ib - 1) >= aright)
+        if (pDblZeta->getSize() >= ib && pDblZeta->get(ib - 1) >= aright)
         {
             nrec = i;
         }