Mercurial > hg > octave-nkf
changeset 16894:068f26c93ac7
octave-link.cc: Fix compilation warning about signed/unsigned comparison.
* libinterp/corefcn/octave-link.cc(__octave_link_file_dialog__): use
unsigned int in for loop because size() from std::list returns size_t
which is unsigned.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 03 Jul 2013 20:38:05 -0700 |
parents | 8fbc09eded8c |
children | b8c37a855074 |
files | libinterp/corefcn/octave-link.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/octave-link.cc +++ b/libinterp/corefcn/octave-link.cc @@ -255,7 +255,7 @@ std::list<std::string>::iterator it = items_lst.begin (); - for (int idx = 0; idx < items_lst.size ()-2; idx++) + for (unsigned int idx = 0; idx < items_lst.size ()-2; idx++) { items.xelem (idx) = *it; it++;