aboutsummaryrefslogtreecommitdiffstats
path: root/src/PhaseReference.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2013-11-10 18:25:04 +0100
committerMatthias P. Braendli (think) <matthias@mpb.li>2013-11-10 18:25:04 +0100
commit4f9a01a80570437b86e69eb0542b13df9a20743d (patch)
tree46790dc24b0f3ca78acffba46e3e6633901903dc /src/PhaseReference.cpp
parentf0fbd5f88e5dbe6b0168082eed103aa003b1221a (diff)
downloaddabmod-4f9a01a80570437b86e69eb0542b13df9a20743d.tar.gz
dabmod-4f9a01a80570437b86e69eb0542b13df9a20743d.tar.bz2
dabmod-4f9a01a80570437b86e69eb0542b13df9a20743d.zip
dabmod: add file input to separate class, change version
Diffstat (limited to 'src/PhaseReference.cpp')
-rw-r--r--src/PhaseReference.cpp6
1 files changed, 3 insertions, 3 deletions
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!");
}