Skip to content

Commit

Permalink
fix: fix version prelease parse
Browse files Browse the repository at this point in the history
OEOTYAN committed Jan 10, 2025
1 parent a7ad066 commit 47f478e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ll/api/data/Version.h
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@ struct PreRelease {
auto tokens = ll::string_utils::splitByPattern(s, ".");
for (auto const& token : tokens) {
std::uint16_t value;
if (detail::from_chars(token.data(), token.data() + token.length(), value); value) {
if (auto result = detail::from_chars(token.data(), token.data() + token.length(), value); result) {
values.emplace_back(value);
} else {
values.emplace_back(std::string{token});

0 comments on commit 47f478e

Please sign in to comment.