Mercurial > pytave
changeset 134:f93288b72f3e
maint: Use Array<T>::numel instead of deprecated Array<T>::length
* octave_to_python.cc (pytave::octmap_to_pyobject): Use Array<T>::numel
instead of deprecated Array<T>::length.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 04 Apr 2016 15:14:10 -0700 |
parents | 058a964ae1de |
children | a6f7d89e2220 |
files | octave_to_python.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/octave_to_python.cc Mon Apr 04 15:11:15 2016 -0700 +++ b/octave_to_python.cc Mon Apr 04 15:14:10 2016 -0700 @@ -273,7 +273,7 @@ py_object = boost::python::dict(); string_vector keys = map.keys(); - for(octave_idx_type i = 0 ; i < keys.length(); i++) { + for(octave_idx_type i = 0 ; i < keys.numel(); i++) { boost::python::object py_val; const Cell c = map.contents(keys[i]);