[Coverity] Unintended sign extension (SIGN_EXTENSION)
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Mon, 20 May 2013 15:37:04 -0700
changeset 9795 5a511fabe141
parent 9794 75604f829f53
child 9796 502941b3a95f
[Coverity] Unintended sign extension (SIGN_EXTENSION)
src/wimax/model/simple-ofdm-wimax-phy.cc
--- a/src/wimax/model/simple-ofdm-wimax-phy.cc	Thu May 16 12:30:44 2013 -0400
+++ b/src/wimax/model/simple-ofdm-wimax-phy.cc	Mon May 20 15:37:04 2013 -0700
@@ -587,7 +587,7 @@
 SimpleOfdmWimaxPhy::RecreateBuffer ()
 {
 
-  bvec buffer (m_blockSize * m_nrBlocks);
+  bvec buffer (m_blockSize * (unsigned long)m_nrBlocks);
   bvec block (m_blockSize);
   uint32_t i = 0;
   for (uint32_t j = 0; j < m_nrBlocks; j++)