fix integer overflow
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user