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 | 142342f8be02648e101fd53441b5d43cdfbb0826 (patch) | |
tree | 5979f634a4a4d75d0b9f022b6bd38ef47d557d26 /mert/mert.cpp | |
parent | 3c04b7e826df624d269df499433b9b19d3611dae (diff) |
Change casts to C++ style casts, and delete unnecessary casts.
Diffstat (limited to 'mert/mert.cpp')
-rwxr-xr-x | mert/mert.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mert/mert.cpp b/mert/mert.cpp index 2384f1ede..58214f30b 100755 --- a/mert/mert.cpp +++ b/mert/mert.cpp @@ -459,8 +459,8 @@ int main(int argc, char **argv) } } - mean /= (float)option.ntry; - var /= (float)option.ntry; + mean /= static_cast<float>(option.ntry); + var /= static_cast<float>(option.ntry); var = sqrt(abs(var - mean * mean)); if (verboselevel() > 1) { @@ -481,7 +481,7 @@ int main(int argc, char **argv) cerr << "bestP: " << finalP << endl; // L1-Normalization of the best Point - if ((int)to_optimize.size() == option.pdim) { + if (static_cast<int>(to_optimize.size()) == option.pdim) { finalP.NormalizeL1(); } |