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/Point.cpp | |
parent | 3c04b7e826df624d269df499433b9b19d3611dae (diff) |
Change casts to C++ style casts, and delete unnecessary casts.
Diffstat (limited to 'mert/Point.cpp')
-rw-r--r-- | mert/Point.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/Point.cpp b/mert/Point.cpp index 322f10f77..f298647dd 100644 --- a/mert/Point.cpp +++ b/mert/Point.cpp @@ -54,7 +54,7 @@ void Point::Randomize() CHECK(m_max.size()==Point::dim); for (unsigned int i=0; i<size(); i++) { operator[](i) = m_min[i] + - (float)random()/(float)RAND_MAX * (float)(m_max[i]-m_min[i]); + static_cast<float>(random()) / static_cast<float>(RAND_MAX) * (m_max[i] - m_min[i]); } } |