Fix build on g++-4.x.

This commit is contained in:
Sebastien Vincent
2009-09-17 07:25:36 +02:00
parent 0836862402
commit f19c5ff408
2 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ Histogram::GetBinCount (uint32_t index)
void
Histogram::AddValue (double value)
{
uint32_t index = floor (value/m_binWidth);
uint32_t index = (uint32_t)floor (value/m_binWidth);
//check if we need to resize the vector
NS_LOG_DEBUG ("AddValue: index=" << index << ", m_histogram.size()=" << m_histogram.size ());