summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormormj <mormjb@gmail.com>2020-11-03 19:01:59 -0500
committerMarcus Müller <marcus@hostalia.de>2020-12-19 14:21:01 +0100
commitef9aab471f0c08e478f2c0fa344453c053b203e0 (patch)
tree389e9ad7d3139e4dfec6e75560793ab4a71d5908
parent6d6c9a254102374d3fdbc4c39eac0b67e07168b7 (diff)
pmt: use to_string for char string_refs
-rw-r--r--gnuradio-runtime/lib/pmt/pmt_unv.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt_unv.cc b/gnuradio-runtime/lib/pmt/pmt_unv.cc
index fd94941c9d..e23f66d45c 100644
--- a/gnuradio-runtime/lib/pmt/pmt_unv.cc
+++ b/gnuradio-runtime/lib/pmt/pmt_unv.cc
@@ -140,7 +140,7 @@ uint8_t* u8vector_writable_elements(pmt_t vector, size_t& len)
const std::string pmt_u8vector::string_ref(size_t k) const
{
const auto& ch = ref(k);
- return std::string(&ch, &ch + 1);
+ return std::to_string(ch);
}
} /* namespace pmt */
@@ -263,7 +263,7 @@ int8_t* s8vector_writable_elements(pmt_t vector, size_t& len)
const std::string pmt_s8vector::string_ref(size_t k) const
{
const auto& ch = ref(k);
- return std::string(&ch, &ch + 1);
+ return std::to_string(ch);
}
} /* namespace pmt */