Mercurial > hg > octave-nkf
diff src/defaults.cc @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | adf8d68d7143 |
children | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/src/defaults.cc +++ b/src/defaults.cc @@ -113,16 +113,16 @@ input_from_startup_file = true; - int a_len = a.length (); - int b_len = b.length (); + octave_idx_type a_len = a.length (); + octave_idx_type b_len = b.length (); - for (int i = 0; i < a_len; i++) + for (octave_idx_type i = 0; i < a_len; i++) { std::string a_dir = a[i]; bool found = false; - for (int j = 0; j < b_len; j++) + for (octave_idx_type j = 0; j < b_len; j++) { if (b[j] == a_dir) { @@ -183,7 +183,7 @@ if (Voctave_home != prefix) { - int len = prefix.length (); + octave_idx_type len = prefix.length (); size_t start = 0; while ((start = retval.find (prefix, start)) != NPOS) {