1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

AK: Fix printing of negative FixedPoint values

Fixes #17514 by comparing to 0 before truncating the fractional part.
This commit is contained in:
Nico Weber 2023-02-18 11:31:59 -05:00 committed by Andreas Kling
parent 13f5aa81e3
commit a30e364f1a
4 changed files with 10 additions and 2 deletions

View file

@ -209,6 +209,7 @@ public:
SignMode sign_mode = SignMode::OnlyIfNeeded);
ErrorOr<void> put_fixed_point(
bool is_negative,
i64 integer_value,
u64 fraction_value,
u64 fraction_one,