diff options
author | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-23 15:48:16 +0400 |
---|---|---|
committer | nicolabertoldi <nicolabertoldi@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-05-23 15:48:16 +0400 |
commit | c9593648bb165e2f21542818aa85ceb7fc53911a (patch) | |
tree | 587d5ef45f0bab367b592a5035703c3a761e08f4 /mert/FeatureStats.cpp | |
parent | e8d26f4f5cf958b859c98e9a86b636da4086e611 (diff) |
change from int to unsigned where needed
add some debugging output (to remove later)
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1794 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert/FeatureStats.cpp')
-rw-r--r-- | mert/FeatureStats.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mert/FeatureStats.cpp b/mert/FeatureStats.cpp index 5d85c5655..54ea76295 100644 --- a/mert/FeatureStats.cpp +++ b/mert/FeatureStats.cpp @@ -19,7 +19,7 @@ array_(stats.array_) FeatureStats::FeatureStats(const size_t size) { - for(int i = 0; i < size; i++) + for(unsigned int i = 0; i < size; i++) array_.push_back(0); }; @@ -32,7 +32,7 @@ FeatureStats::FeatureStats(std::string &theString) void FeatureStats::set(std::string &theString) { std::string substring, stringBuf; - std::string::size_type loc; + int nextPound; FeatureStatsType sc; // TRACE_ERR("Decompounding string: " << theString << std::endl); @@ -79,7 +79,7 @@ void FeatureStats::savetxt(std::ofstream& outFile) outFile << " " << *i; i++; } - outFile << std::endl; +// outFile << std::endl; } |