summaryrefslogtreecommitdiff
path: root/gnuradio-runtime
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-06-22 16:07:04 -0400
committerTom Rondeau <trondeau@vt.edu>2013-06-22 16:07:04 -0400
commit6bdd1ae132f37a759891f356f0ef0f19e54e8bf7 (patch)
treec8c721112b2cf20e1dc0967b16c7ccfb065ff725 /gnuradio-runtime
parent9f38fb3c3601aa7a9bade684ca18b6d43fa3cd1a (diff)
ctrlport: fixed an issue where we weren't using a standard C++ way to set complex values.
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/lib/controlport/rpcpmtconverters_ice.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnuradio-runtime/lib/controlport/rpcpmtconverters_ice.cc b/gnuradio-runtime/lib/controlport/rpcpmtconverters_ice.cc
index 9a36d6d31..ca6a769f4 100644
--- a/gnuradio-runtime/lib/controlport/rpcpmtconverters_ice.cc
+++ b/gnuradio-runtime/lib/controlport/rpcpmtconverters_ice.cc
@@ -110,9 +110,7 @@ rpcpmtconverter::to_pmt(const GNURadio::KnobPtr& knob, const Ice::Current& c)
}
else if(id == "KnobZ") {
GNURadio::KnobZPtr k(GNURadio::KnobZPtr::dynamicCast(knob));
- std::complex<double> cpx;
- cpx.real(k->value.re);
- cpx.imag(k->value.im);
+ std::complex<double> cpx(k->value.re, k->value.im);
return pmt::from_complex(cpx);
}
else if(id == "KnobVecC") {