Skip to content

Commit 58acc67

Browse files
authored
ext/mbstring: Fix deprecation warning (#21363)
This fixes the PHP deprecation warning: PHP Deprecated: Implicit conversion from float 2048.96875 to int loses precision in .../ext/mbstring/gen_rare_cp_bitvec.php on line 9
1 parent f830fa9 commit 58acc67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/gen_rare_cp_bitvec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
return;
77
}
88

9-
$bitvec = array_fill(0, (0xFFFF / 32) + 1, 0xFFFFFFFF);
9+
$bitvec = array_fill(0, intdiv(0xFFFF, 32) + 1, 0xFFFFFFFF);
1010

1111
$input = file_get_contents($argv[1]);
1212
foreach (explode("\n", $input) as $line) {

0 commit comments

Comments
 (0)