summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/pmt/pmt_unv.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-runtime/lib/pmt/pmt_unv.cc')
-rw-r--r--gnuradio-runtime/lib/pmt/pmt_unv.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt_unv.cc b/gnuradio-runtime/lib/pmt/pmt_unv.cc
index 23135dd4fd..81030f8470 100644
--- a/gnuradio-runtime/lib/pmt/pmt_unv.cc
+++ b/gnuradio-runtime/lib/pmt/pmt_unv.cc
@@ -138,7 +138,8 @@ uint8_t* u8vector_writable_elements(pmt_t vector, size_t& len)
const std::string pmt_u8vector::string_ref(size_t k) const
{
- return std::to_string(ref(k));
+ const auto& ch = ref(k);
+ return std::string(&ch, &ch + 1);
}
} /* namespace pmt */
@@ -260,7 +261,8 @@ int8_t* s8vector_writable_elements(pmt_t vector, size_t& len)
const std::string pmt_s8vector::string_ref(size_t k) const
{
- return std::to_string(ref(k));
+ const auto& ch = ref(k);
+ return std::string(&ch, &ch + 1);
}
} /* namespace pmt */