1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

AK: Use size_t for CircularQueue and CircularDeque

This commit is contained in:
Andreas Kling 2020-02-20 13:18:42 +01:00
parent 88b9fcb976
commit 7592f9afd5
5 changed files with 19 additions and 15 deletions

View file

@ -58,7 +58,7 @@ void GraphWidget::paint_event(GUI::PaintEvent& event)
float scale = (float)inner_rect.height() / (float)m_max;
Gfx::Point prev_point;
for (int i = 0; i < m_values.size(); ++i) {
for (size_t i = 0; i < m_values.size(); ++i) {
int x = inner_rect.right() - (i * 2) + 1;
if (x < 0)
break;