Skip to content

Commit

Permalink
mamma mia
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishura4 committed Oct 5, 2023
1 parent 5634345 commit 3f09d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dpp/snowflake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
namespace dpp {

snowflake::snowflake(std::string_view string_value) noexcept {
auto [end, err] = std::from_chars(string_value.data(), string_value.data() + string_value.size(), value);
if (end != string_value.data() + string_value.size())
auto [_, err] = std::from_chars(string_value.data(), string_value.data() + string_value.size(), value);
if (err != std::errc{})
value = 0;
}

Expand Down

0 comments on commit 3f09d16

Please sign in to comment.