Skip to content

Commit 1c69be9

Browse files
committed
Fix return type for 32 bit systems (patch by @williamdes)
1 parent 7eec51d commit 1c69be9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Phing/Util/SizeHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ protected static function findUnitMultiple(string $unit): int
9999
{
100100
foreach (self::IEC as $exponent => $choices) {
101101
if (in_array(strtolower($unit), array_map('strtolower', $choices))) {
102-
return pow(self::KIBI, $exponent);
102+
return (int) pow(self::KIBI, $exponent);
103103
}
104104
}
105105
foreach (self::SI as $exponent => $choices) {
106106
if (in_array(strtolower($unit), array_map('strtolower', $choices))) {
107-
return pow(self::KILO, $exponent);
107+
return (int) pow(self::KILO, $exponent);
108108
}
109109
}
110110

0 commit comments

Comments
 (0)