Skip to content

Commit

Permalink
Fix Math::BigFloat@1.999831+ upgrade improvements breakage
Browse files Browse the repository at this point in the history
Before, apparently, we depended on Math::BigFloat /not/ downgrading on many
operations. That behaviour (bug) has been fixed in 1.999831, which is included
in Perl 5.36. This commit explicitly forbids Math::BigFloat from downgrading.
  • Loading branch information
ehuelsmann committed Oct 1, 2023
1 parent 7b028cd commit 0136f52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/LedgerSMB/PGNumber.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ $accuracy = $precision = undef;
$round_mode = 'even';
$div_scale = 40;

# Prevent downgrading to Math::BigInt
$Math::BigFloat::downgrade = undef;

=head1 INHERITS
=over
Expand Down

0 comments on commit 0136f52

Please sign in to comment.