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

@@ -30,7 +30,7 @@ std::string Display::get_name() const
return this->name;
}
void Display::write_score(const unsigned int & score, const unsigned int & length)
void Display::write_score(const uint64_t & score, const unsigned int & length)
{
auto score_string = std::to_string(score);