src/devices/wifi/minstrel-wifi-manager.cc
changeset 4725 4e068296f09f
parent 4703 e1259e2fdaad
child 5235 ca04d8e6cb2e
--- a/src/devices/wifi/minstrel-wifi-manager.cc	Fri Aug 14 12:31:13 2009 +0200
+++ b/src/devices/wifi/minstrel-wifi-manager.cc	Mon Aug 17 18:58:54 2009 -0700
@@ -539,8 +539,8 @@
           m_minstrelTable[i].attemptHist += m_minstrelTable[i].numRateAttempt;
           m_minstrelTable[i].prob = tempProb;
 
-          /// ewma probability
-          tempProb = ((tempProb * (100 - m_stations->m_ewmaLevel)) + (m_minstrelTable[i].ewmaProb * m_stations->m_ewmaLevel) )/100;
+          /// ewma probability (cast for gcc 3.4 compatibility)
+          tempProb = static_cast<uint32_t>(((tempProb * (100 - m_stations->m_ewmaLevel)) + (m_minstrelTable[i].ewmaProb * m_stations->m_ewmaLevel) )/100);
 
           m_minstrelTable[i].ewmaProb = tempProb;