Skip to content

Commit

Permalink
wifi: Replace mismatching type in std::max
Browse files Browse the repository at this point in the history
Fixes build in Windows
  • Loading branch information
Gabrielcarvfer committed Sep 4, 2024
1 parent a0b80af commit ba6be0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wifi/test/spectrum-wifi-phy-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,7 @@ SpectrumWifiPhyFilterTest::RxCallback(Ptr<const Packet> p, RxPowerWattPerChannel
}

size_t numBands = rxPowersW.size();
const std::size_t num20MhzSubchannels = m_rxChannelWidth / 20;
size_t expectedNumBands = std::max(1UL, num20MhzSubchannels);
auto expectedNumBands = std::max<std::size_t>(1, m_rxChannelWidth / 20);
expectedNumBands += (m_rxChannelWidth / 40);
expectedNumBands += (m_rxChannelWidth / 80);
expectedNumBands += (m_rxChannelWidth / 160);
Expand Down

0 comments on commit ba6be0d

Please sign in to comment.