Mercurial > hg > octave-terminal
changeset 10543:f41c6634d5af
fix bug in sparse vector assignment (bug #29646)
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 23 Apr 2010 09:48:57 +0200 |
parents | 83de7b060e91 |
children | 9961fc022d9d |
files | liboctave/ChangeLog liboctave/Sparse.cc |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2010-04-23 Jaroslav Hajek <highegg@gmail.com> + + * Sparse.cc (Sparse<T>::assign): Fix typos. + 2010-04-20 Jaroslav Hajek <highegg@gmail.com> * Sparse.h (::assign, ::assign1): Remove declarations.
--- a/liboctave/Sparse.cc +++ b/liboctave/Sparse.cc @@ -1771,8 +1771,8 @@ mx_inline_add (rnz, ridx () + li, rhs.ridx (), lb); // ...tail - copy_or_memcpy (nz - ui, data () + ui, data () + li + rnz); - copy_or_memcpy (nz - ui, ridx () + ui, ridx () + li + rnz); + copy_or_memcpy (nz - ui, tmp.data () + ui, data () + li + rnz); + copy_or_memcpy (nz - ui, tmp.ridx () + ui, ridx () + li + rnz); } cidx(1) = new_nz;