From a7629d2bfc6ec2b511184b59f9cd5d71df75ef8b Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 17 Nov 2010 16:15:01 +0000 Subject: [PATCH] Squeeze warnings on msvc express 2010. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36344 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeXFeatures.cpp | 2 +- src/Paragraph.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 8e43101152..8820e1c412 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -922,7 +922,7 @@ docstring const LaTeXFeatures::getMacros() const macros << changetracking_dvipost_def; if (mustProvide("ct-xcolor-ulem")) { - int const prec = macros.precision(2); + streamsize const prec = macros.precision(2); RGBColor cadd = rgbFromHexName(lcolor.getX11Name(Color_addedtext)); macros << "\\providecolor{lyxadded}{rgb}{" diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 1e90a95cb1..5843ba959d 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -1111,7 +1111,7 @@ void Paragraph::Private::latexInset(BufferParams const & bparams, texrow.start(owner_->id(), i + 1); column = 0; } else { - column += os.tellp() - len; + column += (unsigned int)(os.tellp() - len); } if (owner_->isDeleted(i))