work around signed integral promotion
authorTom Henderson <tomh@tomh.org>
Tue, 28 Dec 2010 18:37:09 -0800
changeset 6730 256ec487a425
parent 6729 49b7b6ba2f4c
child 6731 a427ad24207f
work around signed integral promotion
src/devices/wimax/simple-ofdm-wimax-phy.cc
--- a/src/devices/wimax/simple-ofdm-wimax-phy.cc	Tue Dec 28 22:25:20 2010 -0200
+++ b/src/devices/wimax/simple-ofdm-wimax-phy.cc	Tue Dec 28 18:37:09 2010 -0800
@@ -797,7 +797,7 @@
   m_nrBlocks = GetNrBlocks (burstSize, modulationType);
   m_paddingBits = (m_nrBlocks * m_blockSize) - (burstSize * 8);
   m_nrRemainingBlocksToSend = m_nrBlocks;
-  NS_ASSERT_MSG ((m_nrBlocks * m_blockSize) >= (burstSize * 8), "Size of padding bytes < 0");
+  NS_ASSERT_MSG (static_cast<uint32_t> (m_nrBlocks * m_blockSize) >= (burstSize * 8), "Size of padding bytes < 0");
 }
 
 uint16_t