aboutsummaryrefslogtreecommitdiffstats
path: root/URPM
diff options
context:
space:
mode:
Diffstat (limited to 'URPM')
-rw-r--r--URPM/Resolve.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 737ee1c..8020981 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -6,6 +6,7 @@ package URPM;
use strict;
use warnings;
use Config;
+use Math::Int64 ':native_if_available', 'int64';
# perl_checker: require URPM
@@ -1837,6 +1838,7 @@ sub _selected_size_filesize {
my ($urpm, $state, $compute_filesize) = @_;
my ($size, $filesize, $bad_filesize);
+ $size = int64(0); # make sure to use Int64, even on 32bit
foreach (keys %{$state->{selected} || {}}) {
my $pkg = $urpm->{depslist}[$_];
$size += $pkg->size;