Skip to content

Commit d56f8e8

Browse files
authored
Merge pull request #197 from timmit-nl/fix-for-E_DEPRECATED-Impliciy-conversion-from-float-to-int-loses-precision
fix for E_DEPRECATED: Implicit conversion from float 3.984375 to int…
2 parents 88abb55 + 51f97d4 commit d56f8e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/voku/helper/UTF8.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14069,7 +14069,7 @@ private static function to_utf8_convert_helper($input)
1406914069
if (isset(self::$WIN1252_TO_UTF8[$ordC1])) { // found in Windows-1252 special cases
1407014070
$buf .= self::$WIN1252_TO_UTF8[$ordC1];
1407114071
} else {
14072-
$cc1 = self::$CHR[$ordC1 / 64] | "\xC0";
14072+
$cc1 = self::$CHR[intval(floor($ordC1 / 64))] | "\xC0";
1407314073
$cc2 = ((string) $input & "\x3F") | "\x80";
1407414074
$buf .= $cc1 . $cc2;
1407514075
}

0 commit comments

Comments
 (0)