type promotion causing signed/unsigned comparison warnings
authorTom Henderson <tomh@tomh.org>
Tue, 15 May 2012 22:30:45 -0700
changeset 8761 8675a3948f7c
parent 8760 8ccb0c2badc1
child 8762 46d94f0ede45
type promotion causing signed/unsigned comparison warnings
src/lte/model/lte-ue-mac.cc
--- a/src/lte/model/lte-ue-mac.cc	Tue May 15 21:59:45 2012 -0700
+++ b/src/lte/model/lte-ue-mac.cc	Tue May 15 22:30:45 2012 -0700
@@ -389,7 +389,7 @@
             {
               NS_LOG_FUNCTION (this << "\t" << dci.m_tbSize / m_macSapUserMap.size () << " bytes to LC " << (uint16_t)(*it).first << " queue " << (*itBsr).second);
               (*it).second->NotifyTxOpportunity (dci.m_tbSize / activeLcs, 0);
-              if ((*itBsr).second >=  dci.m_tbSize / activeLcs)
+              if ((*itBsr).second >=  static_cast<uint64_t> (dci.m_tbSize / activeLcs))
                 {
                   (*itBsr).second -= dci.m_tbSize / activeLcs;
                 }