diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-26 00:03:11 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2012-06-26 00:03:11 +0400 |
commit | 2a03f275a30dafe64d023f9d6d6e51a6b743eb51 (patch) | |
tree | 648edda3037349b22ca752d26c1bbd9f137f87ee /mert | |
parent | 800c577d7da3bf064710e9fbcbb463507833ea01 (diff) |
change regression data download to git instead of download from edin server.
Minor change in mert/trimStr() function to prevent warning
Diffstat (limited to 'mert')
-rw-r--r-- | mert/Util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mert/Util.h b/mert/Util.h index 11962bdc8..abbd39306 100644 --- a/mert/Util.h +++ b/mert/Util.h @@ -118,9 +118,9 @@ inline FeatureStatsType ConvertStringToFeatureStatsType(const std::string &str) inline std::string trimStr(const std::string& Src, const std::string& c = " \r\n") { - unsigned int p2 = Src.find_last_not_of(c); + size_t p2 = Src.find_last_not_of(c); if (p2 == std::string::npos) return std::string(); - unsigned int p1 = Src.find_first_not_of(c); + size_t p1 = Src.find_first_not_of(c); if (p1 == std::string::npos) p1 = 0; return Src.substr(p1, (p2-p1)+1); } |