Coverity #1321157 fixed 69/18469/3
Dhruv Khattar [Tue, 16 Aug 2016 14:36:19 +0000 (19:36 +0530)]
Link to solution: http://www.aronaldg.org/webfiles/compecon/src/libscl_float.15-11-16/src/eigen.cpp

Change-Id: Ic2174ecc96dfa62821caa78ad08515a9f6c691d6

scilab/modules/elementary_functions/src/c/expm.c

index 1cb3fc0..c6ff06a 100644 (file)
@@ -1797,11 +1797,11 @@ L640:
 
             if (dabss(dblX) > dabss(dblZZ))
             {
-                _pdblHessUp[iIndex24 + 1 + iOffset * _iSize] = (-dblR - dblX * dblW) / dblX;
+                _pdblHessUp[iIndex24 + 1 + iOffset * _iSize] = (-dblR - dblT * dblW) / dblX;
             }
             else
             {
-                _pdblHessUp[iIndex24 + 1 + iOffset * _iSize] = (-dblR - dblX * dblW) / dblX;
+                _pdblHessUp[iIndex24 + 1 + iOffset * _iSize] = (-dblS - dblT * dblY) / dblZZ;
             }
         }
         //:::::::::: end real vector ::::::::::