summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */