Mercurial > hg > octave-nkf
diff liboctave/boolSparse.cc @ 11287:d81b79c1bd5d
fixes for --enable-64
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 22 Nov 2010 03:27:41 -0500 |
parents | 4b51c0a20a98 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/liboctave/boolSparse.cc +++ b/liboctave/boolSparse.cc @@ -173,8 +173,9 @@ Array<octave_idx_type> tmp (nz, 1); copy_or_memcpy (nz, ridx (), tmp.fortran_vec ()); retval = Sparse<bool> (Array<bool> (1, 1, true), - idx_vector (tmp), idx_vector (0), nr, 1, - false); + idx_vector (tmp), + idx_vector (static_cast<octave_idx_type> (0)), + nr, 1, false); } } @@ -221,7 +222,9 @@ Array<octave_idx_type> tmp (nz, 1); copy_or_memcpy (nz, ridx (), tmp.fortran_vec ()); retval = Sparse<double> (Array<double> (1, 1, 1.0), - idx_vector (tmp), idx_vector (0), nr, 1); + idx_vector (tmp), + idx_vector (static_cast<octave_idx_type> (0)), + nr, 1); } }