1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

AK: Change standard casting method of FixedPoint to truncation

This matches what floats do.

Also fix typo `trunk`->`trunc`
This commit is contained in:
Hendiadyoin1 2023-07-23 19:53:04 +02:00 committed by Andrew Kaster
parent 8526791617
commit 05c959e40b
3 changed files with 29 additions and 27 deletions

View file

@ -116,7 +116,7 @@ FixedPoint<16, u32> DMT::MonitorTiming::vertical_frequency_hz() const
u32 DMT::MonitorTiming::refresh_rate_hz() const
{
return vertical_frequency_hz().ltrunk();
return vertical_frequency_hz().ltrunc();
}
#ifndef KERNEL