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:
parent
13f5aa81e3
commit
a30e364f1a
4 changed files with 10 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue