# HG changeset patch # User John W. Eaton # Date 1290414461 18000 # Node ID d81b79c1bd5d8bae43355508d056011a68592a70 # Parent f0478684bc2fa0257bc960323394085edbfbf78d fixes for --enable-64 diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2010-11-22 John W. Eaton + + * boolSparse.cc (SparseBoolMatrix::sum, SparseBoolMatrix::any): + Cast integer idx_vector argument to octave_idx_type. + 2010-11-18 John W. Eaton * chMatrix.cc (charMatrix::row_as_string): Never strip trailing diff --git a/liboctave/boolSparse.cc b/liboctave/boolSparse.cc --- a/liboctave/boolSparse.cc +++ b/liboctave/boolSparse.cc @@ -173,8 +173,9 @@ Array tmp (nz, 1); copy_or_memcpy (nz, ridx (), tmp.fortran_vec ()); retval = Sparse (Array (1, 1, true), - idx_vector (tmp), idx_vector (0), nr, 1, - false); + idx_vector (tmp), + idx_vector (static_cast (0)), + nr, 1, false); } } @@ -221,7 +222,9 @@ Array tmp (nz, 1); copy_or_memcpy (nz, ridx (), tmp.fortran_vec ()); retval = Sparse (Array (1, 1, 1.0), - idx_vector (tmp), idx_vector (0), nr, 1); + idx_vector (tmp), + idx_vector (static_cast (0)), + nr, 1); } } diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-11-22 John W. Eaton + + * defun.cc (defun_isargout): Cast nout to octave_idx_type in call + to std::min. + 2010-11-21 Kai Habel * DLD-FUNCTIONS/fltk-backend.cc (__fltk_uigetfile__): New function diff --git a/src/defun.cc b/src/defun.cc --- a/src/defun.cc +++ b/src/defun.cc @@ -184,7 +184,8 @@ isargout[k++] = false; else { - int l = std::min (k + p->numel (), nout); + int l = std::min (k + p->numel (), + static_cast (nout)); while (k < l) isargout[k++] = true; }