]> git.lyx.org Git - features.git/commitdiff
src/coordcache.C: stop compiler complaint for std::min
authorBo Peng <bpeng@lyx.org>
Sun, 22 Oct 2006 20:38:10 +0000 (20:38 +0000)
committerBo Peng <bpeng@lyx.org>
Sun, 22 Oct 2006 20:38:10 +0000 (20:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15495 a592a061-630c-0410-9148-cb99ea01b6c8

src/coordcache.C

index 0f7575cc9e1fcb35290bbaf33ef37ee471f888be..a9703933685db164423fec8f1029df8c2510ce44 100644 (file)
@@ -70,7 +70,7 @@ CoordCache::dump() const {
                        Paragraph const & par = lt->getPar(pit);
                        Point p = (*j).second;
                        lyxerr << "Paragraph " << pit << ": \"";
-                       for (int k = 0; k < std::min(10, par.size()); ++k) {
+                       for (int k = 0; k < std::min(static_cast<lyx::pos_type>(10), par.size()); ++k) {
                                lyxerr << to_utf8(docstring(1,par.getChar(k)));
                        }
                        lyxerr << "\" has point " << p.x_ << "," << p.y_ << std::endl;