]> git.lyx.org Git - features.git/commitdiff
small fix to avoid signed/unsigned warning
authorLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 30 Nov 1999 23:15:11 +0000 (23:15 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 30 Nov 1999 23:15:11 +0000 (23:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@339 a592a061-630c-0410-9148-cb99ea01b6c8

src/ImportNoweb.C

index 9657530c86d2de658db82d37341eed591603cb2b..48d03dc36b2df06b78376d507424d735ce3ca9b4 100644 (file)
@@ -63,10 +63,10 @@ string ImportNoweb::documentclass()
        if (!ifs) return "nofile"; // Should not happen!
        string line;
        while (getline(ifs, line)) {
-               int p = line.find("\\documentclass");
+               string::size_type p = line.find("\\documentclass");
                if (p != string::npos) {
                        p = line.find('{', p);
-                       int q = line.find('}', p);
+                       string::size_type q = line.find('}', p);
                        result = "literate-" + line.substr(p, q - p);
                        break;
                }