From 02f03dff4ec6b1b326e3b60df66081151f1be37b Mon Sep 17 00:00:00 2001 From: Curve Date: Sun, 19 May 2024 18:58:25 +0200 Subject: [PATCH] fix(signatures): explicit `const char*` begin / end --- src/utils.signature.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.signature.cpp b/src/utils.signature.cpp index 9b704e4..a041178 100644 --- a/src/utils.signature.cpp +++ b/src/utils.signature.cpp @@ -213,7 +213,10 @@ namespace lime int hex{}; - [[maybe_unused]] auto result = std::from_chars(current.begin(), current.end(), hex, 16); + const auto *begin = current.data(); + const auto *end = begin + current.size(); + + [[maybe_unused]] auto result = std::from_chars(begin, end, hex, 16); assert((result.ec == std::errc{}) && "Failed to convert given character"); mask.push_back('x');