Skip to content

Commit

Permalink
use strtoull instead of stoull
Browse files Browse the repository at this point in the history
  • Loading branch information
Commandserver committed Jul 27, 2023
1 parent 8ad391f commit f9d4cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/discordevents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void set_snowflake_array_not_null(const json* j, const char *keyname, std::vecto
if (k != j->end() && !k->is_null()) {
v.reserve(j->at(keyname).size());
for (const auto &id : j->at(keyname)) {
v.emplace_back(std::stoull(id.get<std::string>()));
v.emplace_back(std::strtoull(id.get<std::string>().c_str(), nullptr, 10));
}
}
}
Expand Down

0 comments on commit f9d4cdb

Please sign in to comment.