dynare/mex
Sébastien Villemot 9e222734a8
Bytecode: fix logic in routine that substracts two sparse matrices
The logic of the dynSparseMatrix::Sparse_substract_SA_SB() routine was
incorrect.

In some cases, it would read past the last nonzero elements of the A matrix,
and consequently write past the number of allocated nonzero elements of the C
matrix.

This would lead to crashes and, probably, to wrong results under certain
circumstances.

Closes: #1652
2019-11-27 16:57:47 +01:00
..
build Build system: by default, error out if some dependency is missing 2019-11-26 13:53:42 +01:00
sources Bytecode: fix logic in routine that substracts two sparse matrices 2019-11-27 16:57:47 +01:00