summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/pmt/unv_template.cc.t
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/pmt/unv_template.cc.t')
-rw-r--r--gnuradio-runtime/lib/pmt/unv_template.cc.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/pmt/unv_template.cc.t b/gnuradio-runtime/lib/pmt/unv_template.cc.t
index d3fa14bee1..c9402de19d 100644
--- a/gnuradio-runtime/lib/pmt/unv_template.cc.t
+++ b/gnuradio-runtime/lib/pmt/unv_template.cc.t
@@ -21,8 +21,7 @@ pmt_@TAG@vector::pmt_@TAG@vector(size_t k, @TYPE@ fill)
pmt_@TAG@vector::pmt_@TAG@vector(size_t k, const @TYPE@ *data)
: d_v(k)
{
- for (size_t i = 0; i < k; i++)
- d_v[i] = data[i];
+ memcpy( &d_v[0], data, k * sizeof(@TYPE@) );
}
@TYPE@