From a944a984aeb1df2bea01c2c54a61802188a2336c Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 28 Dec 2010 18:37:09 -0800 Subject: [PATCH] work around signed integral promotion --- src/devices/wimax/simple-ofdm-wimax-phy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/wimax/simple-ofdm-wimax-phy.cc b/src/devices/wimax/simple-ofdm-wimax-phy.cc index 165c560ef..6764d644a 100644 --- a/src/devices/wimax/simple-ofdm-wimax-phy.cc +++ b/src/devices/wimax/simple-ofdm-wimax-phy.cc @@ -797,7 +797,7 @@ SimpleOfdmWimaxPhy::SetBlockParameters (uint32_t burstSize, WimaxPhy::Modulation 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 (m_nrBlocks * m_blockSize) >= (burstSize * 8), "Size of padding bytes < 0"); } uint16_t