1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

SystemMonitor: Use u64 for all GraphWidget values

Turns out size_t is not guaranteed to be 64-bit on i686 and trying to
set the max value using a u64 caused a narrowing conversion.
This commit is contained in:
sin-ack 2021-10-06 22:32:56 +00:00 committed by Andreas Kling
parent 4444bcabde
commit c330ad27b6
3 changed files with 24 additions and 24 deletions

View file

@ -20,7 +20,7 @@ GraphWidget::~GraphWidget()
{
}
void GraphWidget::add_value(Vector<size_t, 1>&& value)
void GraphWidget::add_value(Vector<u64, 1>&& value)
{
m_values.enqueue(move(value));
update();