fix integer overflow

This commit is contained in:
Jonas Zeunert
2022-02-25 22:11:19 +01:00
parent 95ca5b4901
commit 7c56b1d6c7
6 changed files with 6 additions and 6 deletions

View File

@@ -254,7 +254,7 @@ boost::optional<Poco::JSON::Object> OutputRequestHandler::parseDisplay(const std
{
try
{
unsigned int numerical_score = std::stoi(score);
uint64_t numerical_score = std::stoi(score);
display->write_score(numerical_score);
}
catch(std::invalid_argument &e)