Skip to content

Commit 51f97d4

Browse files
author
Tim Schoondergang
committed
fix for E_DEPRECATED: Implicit conversion from float 3.984375 to int loses precision
1 parent ce72331 commit 51f97d4

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
@@ -14059,7 +14059,7 @@ private static function to_utf8_convert_helper($input)
1405914059
if (isset(self::$WIN1252_TO_UTF8[$ordC1])) { // found in Windows-1252 special cases
1406014060
$buf .= self::$WIN1252_TO_UTF8[$ordC1];
1406114061
} else {
14062-
$cc1 = self::$CHR[$ordC1 / 64] | "\xC0";
14062+
$cc1 = self::$CHR[intval(floor($ordC1 / 64))] | "\xC0";
1406314063
$cc2 = ((string) $input & "\x3F") | "\x80";
1406414064
$buf .= $cc1 . $cc2;
1406514065
}

0 commit comments

Comments
 (0)