Mercurial > hg > octave-nkf
diff src/variables.cc @ 4587:7b957b442818
[project @ 2003-11-10 15:50:39 by jwe]
author | jwe |
---|---|
date | Mon, 10 Nov 2003 15:50:40 +0000 |
parents | 8952973c6837 |
children | cba347c642e2 |
line wrap: on
line diff
--- a/src/variables.cc +++ b/src/variables.cc @@ -377,7 +377,7 @@ for (int i = 0; i < n; i++) { - size_t len = text.find ('.', pos); + len = text.find ('.', pos); if (len != NPOS) len -= pos; @@ -1171,8 +1171,8 @@ octave_value_list ovl (len, octave_value ()); - for (int i = 0; i < len; i++) - ovl(i) = names(i); + for (int j = 0; j < len; i++) + ovl(j) = names(j); retval = Octave_map ("name", ovl); }