Skip to content
Snippets Groups Projects
Commit 6d160873 authored by bunnei's avatar bunnei
Browse files

hle: service: nvflinger: Fix implicit conversion.

parent 02282477
No related branches found
No related tags found
No related merge requests found
......@@ -298,7 +298,10 @@ s64 NVFlinger::GetNextTicks() const {
speed_scale = 0.01f;
}
}
return static_cast<s64>(((1000000000 * (1LL << swap_interval)) / max_hertz) * speed_scale);
const auto next_ticks = ((1000000000 * (1LL << swap_interval)) / max_hertz);
return static_cast<s64>(speed_scale * static_cast<float>(next_ticks));
}
} // namespace Service::NVFlinger
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment