]> git.lyx.org Git - features.git/blobdiff - src/ImportNoweb.C
small fix to avoid signed/unsigned warning
[features.git] / 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;
                }