diff options
Diffstat (limited to 'src/cppbor.cpp')
-rw-r--r-- | src/cppbor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cppbor.cpp b/src/cppbor.cpp index 0e9c939..9236d15 100644 --- a/src/cppbor.cpp +++ b/src/cppbor.cpp @@ -18,6 +18,7 @@ #include <inttypes.h> #include <openssl/sha.h> +#include <cstdint> #include "cppbor_parse.h" @@ -132,9 +133,8 @@ bool prettyPrintInternal(const Item* item, string& out, size_t indent, size_t ma const ViewBstr* viewBstr = item->asViewBstr(); assert(viewBstr != nullptr); - std::basic_string_view view = viewBstr->view(); - valueData = view.data(); - valueSize = view.size(); + valueData = viewBstr->view().data(); + valueSize = viewBstr->view().size(); } if (valueSize > maxBStrSize) { |