From 31517754ad50e9c25587ba214a46379c53119503 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Tue, 20 May 2008 11:24:12 +0000 Subject: [PATCH] fix MSVC warning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24864 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/preamble.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 6f71f7f939..4a8968c2e0 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -746,7 +746,7 @@ void parse_preamble(Parser & p, ostream & os, for (; *margin; ++margin) { k += 1; // search for the "=" in e.g. "lmargin=2cm" to get the value - for(int i = 0; i < opts.size(); i++) { + for(size_t i = 0; i != opts.size(); i++) { if (opts.at(i).find(*margin) != string::npos) { string::size_type pos = opts.at(i).find("="); string value = opts.at(i).substr(pos + 1);