diff --git a/src/wimax/model/simple-ofdm-wimax-phy.cc b/src/wimax/model/simple-ofdm-wimax-phy.cc index 6a73e18e0..282de8946 100644 --- a/src/wimax/model/simple-ofdm-wimax-phy.cc +++ b/src/wimax/model/simple-ofdm-wimax-phy.cc @@ -547,7 +547,7 @@ SimpleOfdmWimaxPhy::ConvertBitsToBurst(Bvec buffer) for (int l = 0; l < 8; l++) { bool bin = buffer.at(i + l); - temp += (uint8_t)(bin * std::pow(2.0, (7 - l))); + temp |= (bin << (7 - l)); } *(pstart + j) = temp;