瀏覽代碼

Fixed type issue in cfg.cpp.

Danny N 11 年之前
父節點
當前提交
36e3b0864f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cfg.cpp

+ 1 - 1
cfg.cpp

@@ -144,7 +144,7 @@ Cfg::~Cfg() {
  */
 bool Cfg::readConf(string configfile) {
 	int n = -1;
-	unsigned int pos = 0;
+	size_t pos = 0;
 	string line, next, op, fn(configfile);
 	map<string,string>::iterator it;
 	ifstream cfgfile(fn.c_str());