diff options
Diffstat (limited to 'src/lbdatafactory.cc')
| -rw-r--r-- | src/lbdatafactory.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc index febe3b2..1fe2815 100644 --- a/src/lbdatafactory.cc +++ b/src/lbdatafactory.cc @@ -56,7 +56,7 @@ LBDataFactory::load(const string &conf_file) while (fgets(str, 1024, fp) != 0) { string line(str); - unsigned int pos = line.find("#"); + size_t pos = line.find("#"); line = line.substr(0,pos); string key,value; @@ -71,7 +71,7 @@ LBDataFactory::load(const string &conf_file) } else if (value.empty()) { if ((pos = line.find("\"")) != string::npos) { - unsigned int end_pos = line.rfind("\""); + size_t end_pos = line.rfind("\""); symbol = line.substr(pos+1,end_pos-pos-1); } value = symbol; |
