]> git.lyx.org Git - features.git/commitdiff
warning fix.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 11 Feb 2008 08:31:14 +0000 (08:31 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 11 Feb 2008 08:31:14 +0000 (08:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22939 a592a061-630c-0410-9148-cb99ea01b6c8

src/Paragraph.cpp

index f3762cbc32159ab4243b5e02cc83ed40ee86935b..b5f31281f4da9ee0dff6d11b8825bdb8a68a63f1 100644 (file)
@@ -2519,14 +2519,14 @@ Inset * Paragraph::releaseInset(pos_type pos)
 
 Inset * Paragraph::getInset(pos_type pos)
 {
-       return (pos < d->text_.size() && d->text_[pos] == META_INSET)
+       return (pos < pos_type(d->text_.size()) && d->text_[pos] == META_INSET)
                 ? d->insetlist_.get(pos) : 0;
 }
 
 
 Inset const * Paragraph::getInset(pos_type pos) const
 {
-       return (pos < d->text_.size() && d->text_[pos] == META_INSET)
+       return (pos < pos_type(d->text_.size()) && d->text_[pos] == META_INSET)
                 ? d->insetlist_.get(pos) : 0;
 }