]> Dogcows Code - chaz/p5-File-KDBX/commitdiff
Prereq Math::BigInt 1.993 to fix broken tests
authorCharles McGarvey <ccm@cpan.org>
Wed, 11 May 2022 22:49:45 +0000 (16:49 -0600)
committerCharles McGarvey <ccm@cpan.org>
Wed, 11 May 2022 23:16:13 +0000 (17:16 -0600)
Changes
lib/File/KDBX/Util.pm
t/util.t

diff --git a/Changes b/Changes
index 76956a5433843546d7d27e63247f4e23f3258bd0..65781fc21faa39929ca2f83e823b25ee5dc3d546 100644 (file)
--- a/Changes
+++ b/Changes
@@ -2,7 +2,8 @@ Revision history for File-KDBX.
 
 {{$NEXT}}
 
-  * Fix parsing KDBX4 datetimes on 32-bit perls.
+  * Fixed parsing KDBX4 datetimes on 32-bit perls.
+  * Fixed broken bigint tests on perls < 5.14.
 
 0.902     2022-05-03 19:18:06-0600
 
index b8c901b048d6c73f1187a8d7d5454f409dbc479e..d27263247863fb919a7f84352522f7f4a7c3c1c3 100644 (file)
@@ -600,6 +600,7 @@ sub pack_Ql {
     require Config;
     if ($Config::Config{ivsize} < 8) {
         if (blessed $num && $num->can('as_hex')) {
+            require Math::BigInt;
             return "\xff\xff\xff\xff\xff\xff\xff\xff" if Math::BigInt->new('18446744073709551615') <= $num;
             return "\x00\x00\x00\x00\x00\x00\x00\x80" if $num <= Math::BigInt->new('-9223372036854775808');
             my $neg;
index a785b2f7ce1c7dde8f51b270f59474e153daa1d7..45fbbe25fde447d49d7f4467c1c9b61bc203f12f 100644 (file)
--- a/t/util.t
+++ b/t/util.t
@@ -7,7 +7,7 @@ use lib 't/lib';
 use TestCommon;
 
 use File::KDBX::Util qw(:all);
-use Math::BigInt;
+use Math::BigInt 1.993;
 use Scalar::Util qw(blessed);
 use Test::More;
 
This page took 0.023703 seconds and 4 git commands to generate.