diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 12:17:58 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-02-01 12:17:58 +0400 |
commit | 194e24115adde476df107f5f5ef366eca3b86523 (patch) | |
tree | 5979f634a4a4d75d0b9f022b6bd38ef47d557d26 /mert/FeatureStats.cpp | |
parent | 380f550cf3d2b1150a6868ed6725ce55c1687070 (diff) |
Change casts to C++ style casts, and delete unnecessary casts.
Diffstat (limited to 'mert/FeatureStats.cpp')
-rw-r--r-- | mert/FeatureStats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/FeatureStats.cpp b/mert/FeatureStats.cpp index a8f0f478b..0fe003158 100644 --- a/mert/FeatureStats.cpp +++ b/mert/FeatureStats.cpp @@ -46,7 +46,7 @@ void SparseVector::set(const string& name, FeatureStatsType value) { void SparseVector::write(ostream& out, const string& sep) const { for (fvector_t::const_iterator i = fvector_.begin(); i != fvector_.end(); ++i) { - if (abs((float)(i->second)) < 0.00001) continue; + if (abs(i->second) < 0.00001) continue; string name = id2name_[i->first]; out << name << sep << i->second << " "; } |