summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibSoftGPU/Device.cpp
diff options
context:
space:
mode:
authorAndrew Kaster <akaster@serenityos.org>2023-01-01 22:50:49 -0700
committerLinus Groh <mail@linusgroh.de>2023-01-07 14:51:04 +0100
commita492e2018de1271659732ef7634ee2b9eb3ba719 (patch)
treea5f9ea815e20bafe7ee7b028aab6421c2c85b8ec /Userland/Libraries/LibSoftGPU/Device.cpp
parent48bf0b1408880422f1dea7c3f1330f18560f361b (diff)
downloadserenity-a492e2018de1271659732ef7634ee2b9eb3ba719.zip
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.
Diffstat (limited to 'Userland/Libraries/LibSoftGPU/Device.cpp')
-rw-r--r--Userland/Libraries/LibSoftGPU/Device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibSoftGPU/Device.cpp b/Userland/Libraries/LibSoftGPU/Device.cpp
index a06f67b1a9..a506880b0c 100644
--- a/Userland/Libraries/LibSoftGPU/Device.cpp
+++ b/Userland/Libraries/LibSoftGPU/Device.cpp
@@ -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