From 1ed17b037db20ebe8eed954d4fa975b9e0ac82f6 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 12 Dec 2008 12:54:45 +0000 Subject: * fix a couple of warnings (patch from Armin Berres) * allow Map to map null data --- Eigen/src/Core/IO.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Eigen/src/Core/IO.h') diff --git a/Eigen/src/Core/IO.h b/Eigen/src/Core/IO.h index b7d4c9eac..6e6d02ad4 100644 --- a/Eigen/src/Core/IO.h +++ b/Eigen/src/Core/IO.h @@ -6,12 +6,12 @@ // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either +// License as published by the Free Software Foundation; either // version 3 of the License, or (at your option) any later version. // // Alternatively, you can redistribute it and/or // modify it under the terms of the GNU General Public License as -// published by the Free Software Foundation; either version 2 of +// published by the Free Software Foundation; either version 2 of // the License, or (at your option) any later version. // // Eigen is distributed in the hope that it will be useful, but WITHOUT ANY @@ -19,7 +19,7 @@ // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License or the // GNU General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public +// You should have received a copy of the GNU Lesser General Public // License and a copy of the GNU General Public License along with // Eigen. If not, see . @@ -58,7 +58,7 @@ struct IOFormat coeffSeparator(_coeffSeparator), precision(_precision), flags(_flags) { rowSpacer = ""; - int i=matSuffix.length()-1; + int i = int(matSuffix.length())-1; while (i>=0 && matSuffix[i]!='\n') { rowSpacer += ' '; @@ -81,7 +81,7 @@ struct IOFormat * This class represents an expression with stream operators controlled by a given IOFormat. * It is the return type of MatrixBase::format() * and most of the time this is the only way it is used. - * + * * See class IOFormat for some examples. * * \sa MatrixBase::format(), class IOFormat @@ -135,7 +135,7 @@ std::ostream & ei_print_matrix(std::ostream & s, const MatrixBase & _m, std::stringstream sstr; sstr.precision(fmt.precision); sstr << m.coeff(i,j); - width = std::max(width, sstr.str().length()); + width = std::max(width, int(sstr.str().length())); } } s.precision(fmt.precision); -- cgit v1.2.3