Skip to content

Commit

Permalink
fix(signatures): explicit const char* begin / end
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 19, 2024
1 parent 1fff32c commit 02f03df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils.signature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 02f03df

Please sign in to comment.