Skip to content

Commit 9e904b0

Browse files
drslebedevRalphSteinhagen
authored andcommitted
Fix Soapy tests compilation error for gcc15
Signed-off-by: drslebedev <dr.s.lebedev@gmail.com>
1 parent f96dfce commit 9e904b0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

blocks/sdr/include/gnuradio-4.0/sdr/SoapySink.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Uses a dedicated IO thread to decouple hardware latency from the scheduler.
2222
Shares the underlying SoapySDR device handle with SoapySource when both use
2323
the same driver string, enabling full-duplex TX/RX operation.)">;
2424

25-
using TSizeChecker = Limits<1UZ, std::numeric_limits<std::uint32_t>::max(), [](std::uint32_t x) { return std::has_single_bit(x); }>;
25+
using TSizeChecker = Limits<std::uint32_t{1}, std::numeric_limits<std::uint32_t>::max(), [](std::uint32_t x) { return std::has_single_bit(x); }>;
2626
using TBasePort = PortIn<T>;
2727
using TPortType = std::conditional_t<nPorts == 1U, TBasePort, std::conditional_t<nPorts == std::dynamic_extent, std::vector<TBasePort>, std::array<TBasePort, nPorts>>>;
2828
using StagingBuffer = gr::CircularBuffer<T>;

blocks/sdr/include/gnuradio-4.0/sdr/SoapySource.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Operating modes:
3535
3636
Tested with RTL-SDR and LimeSDR drivers.)">;
3737

38-
using TSizeChecker = Limits<1UZ, std::numeric_limits<std::uint32_t>::max(), [](std::uint32_t x) { return std::has_single_bit(x); }>;
38+
using TSizeChecker = Limits<std::uint32_t{1}, std::numeric_limits<std::uint32_t>::max(), [](std::uint32_t x) { return std::has_single_bit(x); }>;
3939
using TBasePort = PortOut<T>;
4040
using TPortType = std::conditional_t<nPorts == 1U, TBasePort, std::conditional_t<nPorts == std::dynamic_extent, std::vector<TBasePort>, std::array<TBasePort, nPorts>>>;
4141

0 commit comments

Comments
 (0)