Skip to content

Commit 02f03df

Browse files
committed
fix(signatures): explicit const char* begin / end
1 parent 1fff32c commit 02f03df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils.signature.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ namespace lime
213213

214214
int hex{};
215215

216-
[[maybe_unused]] auto result = std::from_chars(current.begin(), current.end(), hex, 16);
216+
const auto *begin = current.data();
217+
const auto *end = begin + current.size();
218+
219+
[[maybe_unused]] auto result = std::from_chars(begin, end, hex, 16);
217220
assert((result.ec == std::errc{}) && "Failed to convert given character");
218221

219222
mask.push_back('x');

0 commit comments

Comments
 (0)