Mercurial > hg > octave-lojdl
changeset 14592:b99cb1b0ee7c
Silence warning about signed comparsion
pt-mat.cc (single_type_concat): Cast octave_idx_type to size_t
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Wed, 02 May 2012 17:13:56 -0400 |
parents | 6b7e9724912a |
children | f4acb362b513 |
files | src/pt-mat.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pt-mat.cc +++ b/src/pt-mat.cc @@ -784,7 +784,7 @@ { // Optimize all scalars case. result.clear (dv); - assert (result.numel () == row.length ()); + assert (static_cast<size_t> (result.numel ()) == row.length ()); octave_idx_type i = 0; for (tm_row_const::iterator q = row.begin (); q != row.end () && ! error_state; q++)