mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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:
parent
8526791617
commit
05c959e40b
Notes:
sideshowbarker
2024-07-18 05:37:06 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 05c959e40b
Pull-request: https://github.com/SerenityOS/serenity/pull/20163
Reviewed-by: https://github.com/DanShaders
3 changed files with 29 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue