Mercurial > fem-fenics-eugenio
changeset 41:cedb2b5d6455
Use std::size_t instead of octave_idx_type to avoid comparison between signed and
unsigned.
author | gedeone-octave <marco.vassallo@outlook.com> |
---|---|
date | Sat, 20 Jul 2013 23:46:03 +0200 |
parents | df41c72f4da4 |
children | 741a7999f590 |
files | src/boundarycondition.h src/expression.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/boundarycondition.h Fri Jul 19 10:15:34 2013 +0200 +++ b/src/boundarycondition.h Sat Jul 20 23:46:03 2013 +0200 @@ -32,7 +32,7 @@ void print (std::ostream& os, bool pr_as_read_syntax = false) const { - for (int i = 0; i < bcu.size (); ++i) + for (std::size_t i = 0; i < bcu.size (); ++i) os << "Boundary condition : " << bcu[i]->str (true) << std::endl; }
--- a/src/expression.h Fri Jul 19 10:15:34 2013 +0200 +++ b/src/expression.h Sat Jul 20 23:46:03 2013 +0200 @@ -42,7 +42,7 @@ { octave_value_list b; b.resize (x.size ()); - for (int i = 0; i < x.size (); ++i) + for (std::size_t i = 0; i < x.size (); ++i) b(i) = x[i]; octave_value_list res = feval (f->function_value (), b); values[0] = res(0).double_value ();