mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:07:44 +00:00
Userland: Silence warnings from ElapsedTimer::elapsed() type change
We changed elapsed() to return i64 instead of int as that's what AK::Time::to_milliseconds() returns, causing a bunch of implicit lossy conversions in callers. Clean those up with a mix of type changes and casts.
This commit is contained in:
parent
48bf0b1408
commit
a492e2018d
7 changed files with 9 additions and 10 deletions
|
@ -1570,7 +1570,7 @@ void Device::draw_statistics_overlay(Gfx::Bitmap& target)
|
|||
static int frame_counter;
|
||||
|
||||
frame_counter++;
|
||||
int milliseconds = 0;
|
||||
i64 milliseconds = 0;
|
||||
if (timer.is_valid())
|
||||
milliseconds = timer.elapsed();
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue