Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit b19ee05

Browse files
authored
Merge pull request #2 from umutphp/master
Fix the bug #1 on Github
2 parents 0336eb9 + 6bb3cdc commit b19ee05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CSS/CSSmin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,9 +784,9 @@ private function normalize_int($size)
784784
{
785785
if (is_string($size)) {
786786
switch (substr($size, -1)) {
787-
case 'M': case 'm': return $size * 1048576;
788-
case 'K': case 'k': return $size * 1024;
789-
case 'G': case 'g': return $size * 1073741824;
787+
case 'M': case 'm': return intval($size) * 1048576;
788+
case 'K': case 'k': return intval($size) * 1024;
789+
case 'G': case 'g': return intval($size) * 1073741824;
790790
}
791791
}
792792

0 commit comments

Comments
 (0)