diff --git a/lib/Cake/I18n/Multibyte.php b/lib/Cake/I18n/Multibyte.php index 7116e29aa09..d6b0e17db07 100644 --- a/lib/Cake/I18n/Multibyte.php +++ b/lib/Cake/I18n/Multibyte.php @@ -982,7 +982,7 @@ public static function mimeEncode($string, $charset = null, $newline = "\r\n") { $parts = array(); $maxchars = floor(($length * 3) / 4); while (strlen($string) > $maxchars) { - $i = $maxchars; + $i = (int)$maxchars; $test = ord($string[$i]); while ($test >= 128 && $test <= 191) { $i--;