small fix to avoid signed/unsigned warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@339 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 1999-11-30 23:15:11 +00:00
parent 1d00ad9765
commit 8ac770821c

View 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;
}