From 4f9a01a80570437b86e69eb0542b13df9a20743d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli (think)" Date: Sun, 10 Nov 2013 18:25:04 +0100 Subject: dabmod: add file input to separate class, change version --- src/PhaseReference.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PhaseReference.cpp') diff --git a/src/PhaseReference.cpp b/src/PhaseReference.cpp index bebbec6..ff6a776 100644 --- a/src/PhaseReference.cpp +++ b/src/PhaseReference.cpp @@ -42,11 +42,11 @@ const unsigned char PhaseReference::d_h[4][32] = { }; -PhaseReference::PhaseReference(size_t dabmode) : +PhaseReference::PhaseReference(unsigned int dabmode) : ModCodec(ModFormat(0), ModFormat(0)), d_dabmode(dabmode) { - PDEBUG("PhaseReference::PhaseReference(%zu) @ %p\n", dabmode, this); + PDEBUG("PhaseReference::PhaseReference(%u) @ %p\n", dabmode, this); switch (d_dabmode) { case 1: @@ -138,7 +138,7 @@ void PhaseReference::fillData() }, }; - if ((d_dabmode < 0) || (d_dabmode > 3)) { + if (d_dabmode > 3) { throw std::runtime_error( "PhaseReference::fillData invalid DAB mode!"); } -- cgit v1.2.3