🚿 force int because PHP8.1 hates this

This commit is contained in:
codemasher
2021-12-13 00:09:45 +01:00
parent 43e1663390
commit f7521c9227
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ final class Binarizer{
// finish the rest of the rows quickly
for($yy++, $offset += $width; $yy < self::BLOCK_SIZE; $yy++, $offset += $width){
for($xx = 0; $xx < self::BLOCK_SIZE; $xx++){
$sum += $luminances[$offset + $xx] & 0xff;
$sum += $luminances[(int)($offset + $xx)] & 0xff;
}
}
}